E
El Diablo
Hi there,
I'm trying to change the name of an HTML form element using JavaScript but
it doesnt seem to work. It just ignores the attempted change - no errors or
anything. I'm using the tag's id as a referrer:
document.getElementById('elementIdName').name = 'newName';
when I do an alert calling for the value of the form element using the
newName it returns an object not found error. If I use the oldName it works.
What gives? Is what i'm trying even possible?
Many thanks.
I'm trying to change the name of an HTML form element using JavaScript but
it doesnt seem to work. It just ignores the attempted change - no errors or
anything. I'm using the tag's id as a referrer:
document.getElementById('elementIdName').name = 'newName';
when I do an alert calling for the value of the form element using the
newName it returns an object not found error. If I use the oldName it works.
What gives? Is what i'm trying even possible?
Many thanks.