Jump to content

get all form elements with javascript


freelance84

Recommended Posts

 

 

How could i send a forms values to javascript if the number of elements within the form depend on user actions?

 

Essentially I want to be able to send this said forms values along with their titles to the server via AJAX.

 

However how can i instruct a JS file to get and check the values of this form when I do not know all the ID's to get?

 

I have found a few tutorial sites using both raw javascript and using jquery to send a form with out a page refresh but all the examples know what form elements to get.

 

Is there something similar in javascript to php's $_POST array? Or will i have to submit the form with iFrames or something??

Link to comment
https://forums.phpfreaks.com/topic/238985-get-all-form-elements-with-javascript/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.