close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Form submission and email trigger in jQuery Mobile

Thread began 12/05/2013 1:03 pm by FPhu61701534 | Last modified 12/05/2013 9:48 pm by Jason Byrnes | 2502 views | 3 replies |


Form submission and email trigger in a multiple forms jQuery Mobile page

A jQuery Mobile app is essentially one HTML page made up of several DIV pages. Say I have a HTML page with more than one forms whereby each is contained in its own DIV. When it comes to submitting a form or to trigger the universal email, how do I ensure that the form/email action is associated with the correct form? Should it be by any form submission or trigger by submit button?

Also, can a form POST and GET be sent to a specific form in a multiple forms HTML page? The jQuery App I am building now contains a registration form and an evaluation form. Perhaps the GET string should be something like for example? How about POST?

I am trying to confine all the form transactions within 1 jQuery Mobile page rather than for the browser to fetch different pages for different things. That's not how a jQuery Mobile app should work.

Sign in to reply to this post

Jason ByrnesWebAssist

in each form, use unique names and IDs for the form elements

for the triggers, use the submit button pressed.

if you use unique names for the submit buttons, you will be able to trigger different behaviors by which submit was pressed.

where the form data is sent is set by the action attribute of the form tag.

each form tag will have it's own action attribute, when the submit button in one form is pressed, only he form elements within that form are sent to the action page.

This is all the basics of how forms work whether in a jquery page or a standard HTML page.

Sign in to reply to this post


Would multiple copies of Results, Update and Details be created since there are more than one forms? Would they clash?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, there would be need to be multiple copies of the forms, just like there would have to be multiple copies of the pages if you did it on a page by page basis.

they wont clash as long as you use unique names and ids for the form elements and set the triggers to use the appropriate submit button.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...