Skip to main content
added 2 characters in body
Source Link
jj.badweyn
  • 123
  • 1
  • 3
  • 10

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 + "')">" + username + ""); $("#usertable").append("<tr onclick=\"displaySmth('" + smth_value + "')\"><td>" + username + "</tr></td>");

and function doto display smth_value

 displaySmth(somevalue){ $("#smth_id").text(somevalue) } 

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 + "')">" + username + "");

and function do display smth_value

 displaySmth(somevalue){ $("#smth_id").text(somevalue) } 

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) } 
Source Link
jj.badweyn
  • 123
  • 1
  • 3
  • 10

React.js and jquery Uncaught ReferenceError: (function) is not defined at HTMLTableRowElement.onclick

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 + "')">" + username + "");

and function do display smth_value

 displaySmth(somevalue){ $("#smth_id").text(somevalue) }