Im getting this error for this line of code
jQuery("body").html(jQuery("body").html().replace(/Some Text/gi, "<strong>Some Text</strong>"));
I am just trying to attach a strong tag to every instance of the words "Some Text" across site pages.
But this error actually destroys my other site functionalities, specifically AJAX stuff.
Error: Uncaught SyntaxError: Unexpected token <
Further info on error: (anonymous function) @ (index):227
Aucun commentaire:
Enregistrer un commentaire