I want to have a set of keywords like: "wrongKeyWordOne, wrongKeyWordTwo, wrongKeyWordThree."
As the user types in the typing area (or other HTML element), for example, something like this:
This is the wrongKeyWordOne and this is the wrongKeyWordTwo
I want to use jQuery to add classes to those keywords in real-time:
This is the <strong class="wrong-key">wrongKeyWordOne</span>
and this is the <strong class="wrong-key">wrongKeyWordTwo</wrong-key>
CSS:
.wrong-key {
background: #F00;
}
I'm not sure if this is hard to accomplish.
Any suggestions?