Open smita-chougale opened 6 years ago
You can use it dynamicly first need to destroy
$('#textarea').highlightTextarea('destroy');
and then reuse it.
$('textarea').val('changed_value == 9')
$('textarea').highlightTextarea({ words: ['brand'] })
I have textarea as follows and highlighted word using highlightTextarea:
When I try to set the value of textarea using jquery:
again called following method :
then output is as follows:
It is not reseting the mark tag. Only after I try to edit the textarea value by typing, it removes the highlighted mark from background.