View Single Post
  #11 (permalink)  
Old 03-26-2007, 02:35 PM
curtiss's Avatar
curtiss curtiss is offline
Moderator
 
Join Date: May 2003
Posts: 1,437
You have to assign an ID to the form element:

Code:
<textarea id='myTextArea'></textarea>
Then, you add a "for" switch to your label, which refers to that particular ID:

Code:
<label for='myTextArea'>This is my label.  If you click here, no matter where I place this label in relation to the textarea, your cursor will go into the textarea</label>
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote