Escape single and double quote in attributes shows error on Worpress only

$height.prop('placeholder', '(e.g., 5' or 5'5" or 5'5)');

Im trying to set my placeholder using JQuery prop method, but I got this error

Uncaught SyntaxError: missing ) after argument list

I have working fiddle Demo but when I put it on my wordpress site, I got the error above.

Read more here: Escape single and double quote in attributes shows error on Worpress only

Leave a Reply

Your email address will not be published. Required fields are marked *