jkhome
03-06-2005, 09:40 PM
I'm trying to set focus on a textarea using javascript. I take it this is possible but the caret does not appear
Could someone please confirm the syntax for this
Could someone please confirm the syntax for this
|
||||
focus textareajkhome 03-06-2005, 09:40 PM I'm trying to set focus on a textarea using javascript. I take it this is possible but the caret does not appear Could someone please confirm the syntax for this vwphillips 03-06-2005, 10:09 PM <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> </head> <body> <textarea id="ta" name="" rows="5" cols="30"> fred </textarea> <br> <input type="button" name="" value="focus" onclick="javascript:document.getElementById('ta').focus();"> </body> </html> |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum