Wednesday 17 April 2019

Adding dynamic text in double quotes in jquery:

var section="test";
var testString = "<a style='margin-top: 10px;' class='btn btn-danger' onclick='deleteProfSumImage(this,\"" + section + "\")'>Delete</a>";

No comments:

Post a Comment