Having built a form with several inputs and a submit button, how do I set the input name attribute?
I have the following javascript:
I get get the type successfully, but the code does not set the name.
Your help would be much appreciated.
Thanking you in anticipation.
Roger
I have the following javascript:
| var editor = $find("<%=RadEditor1.ClientID %>"); |
| var jDocument = editor.get_document(); |
| var jInputElements = jDocument.getElementsByTagName("input"); |
| var jCtr = 0; |
| for (var i = 0; i < jInputElements.length; i++) { |
| if (jInputElements[i].type != 'submit') { |
| alert(jInputElements[i].type); |
| jInputElements[i].name = jInputElements[i].type + jCtr; |
| } |
| jCtr += 1; |
| } |
I get get the type successfully, but the code does not set the name.
Your help would be much appreciated.
Thanking you in anticipation.
Roger
