Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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)
$("#myTextBox").caret()
$("#myTextBox").caret(position)
Then you can call $("#myTextBox").caret() or set it $("#myTextBox").caret(position)
Then you can get the position using $("#myTextBox").caret() or set it via $("#myTextBox").caret(position)
There is now a nice plugin for this: The Caret PluginThe Caret Plugin