sumbin Posted June 6, 2012 Share Posted June 6, 2012 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 2 Link to comment Share on other sites More sharing options...
birbal Posted June 6, 2012 Share Posted June 6, 2012 have you come up with any codes? did you check the w3school tutorials yet? 1 Link to comment Share on other sites More sharing options...
sumbin Posted June 6, 2012 Author Share Posted June 6, 2012 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 More sharing options...
birbal Posted June 6, 2012 Share Posted June 6, 2012 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. 1 Link to comment Share on other sites More sharing options...
sumbin Posted June 6, 2012 Author Share Posted June 6, 2012 please show me a example!!!!!!!!!!! with simple code Link to comment Share on other sites More sharing options...
birbal Posted June 6, 2012 Share Posted June 6, 2012 there is an example how to get elementshttp://w3schools.com/jsref/coll_form_elements.asp 1 Link to comment Share on other sites More sharing options...
sumbin Posted June 6, 2012 Author Share Posted June 6, 2012 there is an example how to get elementshttp://w3schools.com...rm_elements.asp thanks a lot!!!!!!!!!!!!!1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now