I am struggling with this.
I wanted to use a jQuery & Java Script to find words and then put html tags around them. I found that idea here:
Find text string in jQuery and make it bold
and
http://jsbin.com/AvUcElo/1/edit
I was able to use the second link to work on my Wordpress site. However, I have a contact form on my site and the contact form is broken when I call the java script. I'm using the Wordpress plugin "Contact For 7".
When the contact form is work it looks like this:
<p>Your Name (required)<br>
<span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"></span>
</p>
When I call the javascript form the second example the code looks like this:
<p>Your Name (required)
</p>
Any suggestions why this is happening would be very helpful.