Text Highlighter - Dynamic

Highlights User-defined Text

< Feedback on Text Highlighter - Dynamic

Review: चांगली - स्क्रिप्ट चालते

§
पोस्ट केले: 2022-06-29

Hi there, is there a way to make this work on a form input field? id="forms.input" where the value has one of the keywords to be highlighted? I've checked and the js isn't ignoring ancestor::form

Many thanks

Jefferson Scherलेखक
§
पोस्ट केले: 2022-06-30

This script highlights text by adding HTML into a text node. For example:

Before:

one two three

After:

one <span>two</span> three

I don't think that is possible in a text input.

उत्तर पोस्ट करा

उत्तर पोस्ट करण्यासाठी साइन इन करा.