Skip to main content
improved wording
Source Link
YakovL
  • 8.4k
  • 13
  • 74
  • 117

There is now a nice plugin for this: The Caret Plugin

Then you can callget the position using $("#myTextBox").caret() or set it via $("#myTextBox").caret(position)

There is now a nice plugin for this: The Caret Plugin

Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)

There is now a nice plugin for this: The Caret Plugin

Then you can get the position using $("#myTextBox").caret() or set it via $("#myTextBox").caret(position)

Replaced link to plugin by one to the jQuery page
Source Link
Sebastian Zartner
  • 20.4k
  • 10
  • 104
  • 143

There is now a nice plugin for this: The Caret PluginThe Caret Plugin

Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)

There is now a nice plugin for this: The Caret Plugin

Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)

There is now a nice plugin for this: The Caret Plugin

Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)

Source Link
Jens Mikkelsen
  • 2.7k
  • 20
  • 23

There is now a nice plugin for this: The Caret Plugin

Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)