Skip to content
Advertisement

Tag: forms

Append 1 Form to Another Form – Then Submit

I have 2 forms, 1 in my content and one in the sidebar of my website. I submit them via $_GET, but I want to submit the form when any of the selects are changed. Since they’re in 2 different locations and wrapped in 2 separate form tags I need to append #form1 to #form2 then submit #form2. I’ve looked

Change form action based on drop down selection

Need form to change it’s action depending on the selection from a specific drop down menu. On change should trigger the script and change the action before user submits. Easier said than done when you’re new to JS.. thanks for any help! Answer Your code is missing the part to get the selected item from the selectbox. The rest should

Stop form refreshing page on submit

How would I go about preventing the page from refreshing when pressing the send button without any data in the fields? The validation is setup working fine, all fields go red but then the page is immediately refreshed. My knowledge of JS is relatively basic. In particular I think the processForm() function at the bottom is ‘bad’. HTML JS Answer

form submit jquery v javascript difference

in javascript this works fine and the validateForm function fires but why doesnt a similar implementation of the same code in jquery not work? This is what I would like to do after reading http://api.jquery.com/submit/ the following code works why does the submit method require a function to wrap around the code im trying to fire. why can i not

Clear input fields on form submit

I know this is continuously asked anew, and I’ve checked out different answers and tried different solutions but to no avail. In some cases it can be really be a case by case thing depending on how the code has been redacted. I’d like to simply have the two input fields in my page to clear when I click submit

Advertisement