i have text box control , want select multiple ranges of text when click on button. example: text :"i want select" , want selected words "want" , "select".
do have idea of how implement this?
thanks,pavel.
not sure if you're looking but:
var words = textbox1.trim().split(' ');
then have array of strings of words. . trim() ensures don't have spaces in front or after 'sentence'.
Comments
Post a Comment