Skip to content

Highlighting not working properly when setting value of textarea using jquery #86

@smita-chougale

Description

@smita-chougale

I have textarea as follows and highlighted word using highlightTextarea:
textarea1

$('textarea').highlightTextarea({
     words: ['brand']
})

When I try to set the value of textarea using jquery:

$('textarea').val('changed_value == 9')

again called following method :

$('textarea').highlightTextarea({
     words: ['brand']
})

then output is as follows:
textarea2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions