Knowing the jQuery Caret plugin, I\'m still seeing no way to do the following on a single line text box in HTML (i.e. the input:type=text
control) with JavaScript:<
So with the help of Mark and Rob W, I finally managed to solve it.
My additional challenge was that the text box already has the focus, which came out is an issue (I'm using the whole stuff in the OnClientItemSelected
of the Ajax Toolkit's AutoCompleteExtender).
So my solution is:
It's working for me successfully in Google Chrome, Firefox and Internet Explorer 9. Hopefully it works in other browsers, too.
I'm marking Mark's comment as the answer.