I have a difficult situation with html and javascript. My html page allows user to select text and highlight it with colors. Now I want to save the state into database to sh
First Example :
The above properties are especially useful in getting any user selected text from a form field where the indices of the selection isn't already known. The following demo echoes what the user has selected from a TEXTAREA using these properties:
Second Example
Some text for selection. Some text in a textarea element. Select some content on this page!
Third Example :
Select some text within this field. Get the current selection