Getting Form Data Using Javascript And Sending Data With Ajax
EDIT: Found the issue. Changing name='demo_name' and such items on my form to id='demo_name' fixed it. Thanks @Jill I'm trying to insert contact form data into a MySQL database usi
Solution 1:
You should have dataString
under this form:
vardataString= {demo_name:demo_name, demo_age:demo_age, and_so_on:and_so_on};
Solution 2:
More preferable way:
var dataString = $("form[name='demo']").serialize();
Post a Comment for "Getting Form Data Using Javascript And Sending Data With Ajax"