$(element)[0].selectionStart seems to only work for textareas. Is there an alternative for non textareas
I think theres one https://developer.mozilla.org/en/JavaScript/Reference but for for things like what properties/functions a Textarea object will开发者_如何学Python have, where can I get it?
I\'m having some difficulties getting the script below to work with my text editor. I\'m not sure what is wrong but selectionStart and selectionEnd are returning as undefined.
Can you get the word the user has double-clicked on?I\'ve tri开发者_Python百科ed in a onDblClick eventhandler but selectionStart is undefined there; and the onselect event seems to be available only f
is the开发者_如何学JAVAre a way to get the highlightedselectionstart and selectedlenght on a span ?