function createResendIVButton(userId, name){
return '<span class=btn onclick=usersTable.resendInvestorVerification("'+userId+'","'+name+'")>resend I.V.</span>';
}
When creating an element as HTML, is it possible to somehow send the function handle instead of a string (function name)? String is inconvenient, because of visibility problems. And I need to create from HTML because library I use do not let me access its DOM easily, but allows me to initialize rows from HTML code.