![]() |
|
|
|
#1 |
|
Hi,
I have an input text box in my javascript code. When an event is fired, I need to set the cursor at the end of the text in the input text box but when I call: Code:
the cursor is put at the first char of the text. Any idea is appreciated. peace2007 |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Sep 2007
Posts: 12
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script type="text/javascript"> function fun(thisForm){ document.frm.txt2.value=" "; document.frm.txt2.focus(); return true; } </script> </head> <body> <form name="frm" action=""> First name <input type="text" name="txt1" tabindex="0"><br><br> Last name <input type="text" name="txt2" size="10" onfocus="return fun(this)" tabindex="1" > <br> <input type="submit" name="sum" tabindex="2"> </form> </body> </html> gaurav_kant |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wonderful data input with web reporting tool | freezea | Software | 0 | 09-09-2009 05:30 AM |
| Memories on TV 3 and Text | alca11 | Software | 0 | 07-20-2006 09:32 PM |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |
| Burn process failed - help! Log file posted for help troubleshooting | Michael Mason | DVD Video | 1 | 08-16-2004 09:24 PM |
| DVD Recorder-DV input & Hard Drive ? | Marion | DVD Video | 7 | 05-16-2004 06:31 PM |