Jump to content

get form elements name


robert_gsfame

Recommended Posts

i have a form

<form name=frm1>

<input type="checkbox" value="a" name="xxxx">

</form>

 

i wish to get the name of the elements using document.frm1.elements

 

to get the value, i simply use document.frm1.elements[1].value;

when i try to use document.frm1.elements[1].name to get the name of the element, i cant get it

Link to comment
https://forums.phpfreaks.com/topic/222734-get-form-elements-name/
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.