Under what circumstances can i use name or id of a form control?
I just noticed that i get mixed results when i use the getElementByid in javascript. For instance, if a control has a name property and not id, it throws errors at times. if i rename all my controls to id instead of name, would it be dangerous in any way?
MICAH
Reply from Richard Rost:
Micah, when in doubt, just use both. Whenever I know I'm going to be using JavaScript with a form control, I assign it both an ID and a NAME.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Active Server Pages Forum.