I have call onclick function use this code
htmlText += "<div class='publishericons viewdetails viewPublisherDetails' PublisherId='" + row.publisherID + "' data-rows='" + JSON.stringify(row) + "' data-url='" + siteurls + "/Index/?handler=PublisherDetails' onclick='"+myfunc()+"'>";
But this is not working.
Please let me how it working