I have a textarea where I entered some text and also selected part of it and a button calls a function that sends the text in the area *and* the positions of the
selected text to a function
Like this code:
<input name="cmdBold" type="button" value="Bold" onClick="bold()"><br>
<textarea name="txtText"></textarea>
How can I find out the positions? Any simple examples?
selected text to a function
Like this code:
<input name="cmdBold" type="button" value="Bold" onClick="bold()"><br>
<textarea name="txtText"></textarea>
How can I find out the positions? Any simple examples?