Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Javascript: Cursor position in Textare

Javascript: Cursor position in Textare

Scheduled Pinned Locked Moved Web Development
javascriptdata-structuresquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bin_bin1
    wrote on last edited by
    #1

    Hello there, I am tring to get the current cursor position in textarea. I'd like to know How I can get the current cursor position ( Not the mouse cursor position) in the textarea? I tried but cannot find it in the document tree. In there a way to get that? thank you very much in advance. Bin

    A 1 Reply Last reply
    0
    • B bin_bin1

      Hello there, I am tring to get the current cursor position in textarea. I'd like to know How I can get the current cursor position ( Not the mouse cursor position) in the textarea? I tried but cannot find it in the document tree. In there a way to get that? thank you very much in advance. Bin

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      I believe what you are refering to is called the caret. Anyways, you could possibly use the TextRange object??? HTH :) It's frustrating being a genius and living the life of a moron!!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups