I need to use single qoute to wrap 2 valiables inside .html() method in jQuery. I want to know how to fix this ?
$("#mydiv").html('<a class="accset_chg_ressid" href="#" onclick="changeit(var1,var2);">Change Change it</a>');
var1 and var2 is none numeric variable, so it need single qoute to wrap it. But How to fix this ?