Jump to content
Sign in to follow this  
sumbin

AJAX form submit

Recommended Posts

hi..everyone!!!!!!!!iam trying to submit a form which has approx 10 text fields with ajax. but iam unable to write the code. please help!!!!!!!!!!!!!! in this regard thanksSuman

  • Like 2

Share this post


Link to post
Share on other sites

have you come up with any codes? did you check the w3school tutorials yet?

  • Like 1

Share this post


Link to post
Share on other sites

yes!!!! i know a bit of ajax. but the problem is when there many no.s of text fields and when the no. of text is vriable then how to code it????

Share this post


Link to post
Share on other sites

you can get a form element using DOM and loop through its child inputs elements and you can get its name and value and use it to make the query name-value pair.

  • Like 1

Share this post


Link to post
Share on other sites

please show me a example!!!!!!!!!!! with simple code

Share this post


Link to post
Share on other sites

there is an example how to get elementshttp://w3schools.com/jsref/coll_form_elements.asp

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...