But, I want to use this to set the focus to an <INPUT> tag which, by definition, does not have an "id". It has only a "name".Can someone tell me how I go about setting the focus to such a field? Inputs most certainly can have an ID attribute in addition to a name. (http://www.w3schools.com/tags/tag_input.asp) So, you can just use that.Or, if you want to stick with the name, you can do:document.forms['yourFormName'].elements['yourInputName'].focus();dsbrady
Best Of |
Favorites & Replies |
Start a New Board |
My Fool |
BATS data provided in real-time. NYSE, NASDAQ and NYSEMKT data delayed 15 minutes.
Real-Time prices provided by BATS. Market data provided by Interactive Data.
Company fundamental data provided by Morningstar. Earnings Estimates, Analyst Ra