-
Reading and setting cursor position in text box
Hi all,
can anyone just give me a clue on how to set the cursor at a specified position in a text box using java script. I would also appreciate your help reading the current position of the cursor in the text box.
My actual problem goes like this:
my textbox contains say value : 'dynmic'
now i click the mouse in the position between the characters n and m and start inputing some other text(not from the keyboard but using mouse click events). say i enter 'a' followed by 'b' and then 'c'.
now the text bow should have 'dynabcmic' and cursor should be blinking between the characters 'c' and 'm'
(i.e) i want every entry to be made sequentially based on the position of the cursor in the text box. also i want the cursor blinking in the text area in the appropriate position.
i would appriciate your quick support
thanks
-
-
-
-
thanks for the support...that was really useful
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks