jquery focus on content editable without selecting everything

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-05-20T04:51:03Z Indexed on 2010/05/20 5:00 UTC
Read the original article Hit count: 155

Filed under:
|
|

I have a contenteditable element that I want to focus, but only insofar as to place the cursor at the front of the element, rather selecting everything.

elem.trigger('focus'); with jquery selects the entire element in chrome. How can I get it to behave the way I want, or is focus perhaps not what I'm looking for.

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about contenteditable