Jump to content

sumbin

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
Link to comment
Share on other sites

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

  • Like 1
Link to comment
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????

Link to comment
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
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...