js in my web app, i was just creating table with work, but sadly onClick on a Uncaught ReferenceError: (function) is not defined at HTMLTableRowElement.onclick
here is table code $("#usertable").append("<tr onclick=\"displaySmth('" + smth_value + "')\"><td>" + username + "</tr></td>");
and function to display smth_value
displaySmth(somevalue){
$("#smth_id").text(somevalue)
}