I have script that append input to the page and the input with onclick function. This function get 3 parameters. But i get SyntaxError: expected expression, got end of script.
my code look like this:
scntDiv.append('<input id="coupon_id'+currentItem+'" type="button" value="Create Coupon" onClick="randomString(coupon_id'+currentItem+',ttt'+currentItem+',lll'+currentItem+');">');
Any Hellp?
onclick="randomString(coupon_id2,ttt2,lll2);"Instead of:onclick="randomString('coupon_id2','ttt2','lll2');"