chrissparkle
Programmer
I have a div which is hidden when the page is loaded. When the user clicks a link it shows the DIV and inside the DIV is a small comments form to complete. The comments form has two fields, a subject and a message field.
I want the subject (input type text) to have focus (ie, cursor in field) when the user clicks the link to show the DIV.
I tried putting in the usual onLoad focus into the body but I got errors that form field was inivisble, disabled or hidden etc etc.
Is there a way to achieve this?
I want the subject (input type text) to have focus (ie, cursor in field) when the user clicks the link to show the DIV.
I tried putting in the usual onLoad focus into the body but I got errors that form field was inivisble, disabled or hidden etc etc.
Is there a way to achieve this?