I try to make an action onclick
within a append
. Here is my example:
$('#tr').append("<td><a onclick='nombre(a,b)'></a></td>")
by clicking on the link
I want to pass some parameters. I already tried like this. I did my job like this:
function nombre(a,b){}
but I can not get it to work. Maybe it's not the right way. I need help! If someone can explain more in detail how to solve this problem.