Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

select after last char

$
0
0
Hi,
I have same element, for example: <div id="area">Text</div>
If I click at char t (right side) and then use console with $("#area").selection() it log:  { start : 4 , end : 4 , width : 0 }
But if I use  $("#area").selection(4,4)  it log: 
  1. Uncaught NotFoundError: Failed to execute 'setStart' on 'Range': The node provided was null. jquerypp.min.js:2171

Is it error?


Viewing all articles
Browse latest Browse all 3491

Trending Articles