How to get selected text from textarea (javascript)
actually did as in the answer to the above question. But not getting in the firefox returns null
I would like an implementation on jQuery. According to Google, I did not find this, the logic is in principle simple to determine the beginning of the selected area and the end, and by cutting the text to get the selected fragment. The task is basically trivial and is there no such function in jQuery?
ps I'm a php programmer for this in jQuery is not strong.