I have the following link that calls a javacript function. This works perfectly fine unless the input value has a ' in it, for example Gary's books.
I tried using encodeURI in the onclick="" but the quotes are still causing me grief. I hope i'm explaining this well enough.
Any suggestions?
Code:
<a href="#" onclick="rename('test');">
I tried using encodeURI in the onclick="" but the quotes are still causing me grief. I hope i'm explaining this well enough.
Any suggestions?