I have an \"uncaught exception: Syntax error, unrecognized expression: )\" in a jQuery application.
The code is:
Try this:
$("p:contains('" + vtxt + "')").addClass("on");