@accursoft/jquery-caret

1.3.7 • Public • Published

jQuery Caret

  • get the caret's position: pos = $(textarea).caret()
  • set the caret's position: $(textarea).caret(pos)
  • set the caret's position to the end: $(textarea).caret(-1)

Return value: the current/new caret position

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @accursoft/jquery-caret

      Weekly Downloads

      7,435

      Version

      1.3.7

      License

      BSD-3-Clause

      Unpacked Size

      5.24 kB

      Total Files

      4

      Last publish

      Collaborators

      • accursoft