Including single quotes in an inline javascript
Hello,
I need help please,.. all i wanted is to have this output
<span onclick="myfunction('1','2','3')">Link</span>
my script is:
<span class="clickable" onclick=\"myfunction("'+data.tid+'","'+data.startpay+'","'+data.endpay+'")\">' + data.emp + '</span>
This doesn't seem to work […]
See original post by invalid@example.com (neilfurry)
Leave a Reply
You must be logged in to post a comment.