$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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: