Advanced Search

Results 1 to 3 of 3

Thread: Reading and setting cursor position in text box

  1. #1
    Join Date
    Apr 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

  3. #3
    Join Date
    Apr 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the support...that was really useful

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •