1
Good evening, I have a jquery table where in a column I return a button
{ "data" : 'sla.value', 'render': function ( data, type, full, meta ) {
return ' <button id="show" type="button">Click</button>'; }
After closing the});
table comes a simple alert (all within $(Document). ready):
$('#show').click(function(){
alert('oi');
});
But when you click nothing happens, if you inspect the button it shows the id show. The same thing happens if I put it like this onclick="metodo();"
direct into the element and create this method below, in the console informs that 'method' was not found. Any idea? It seems simple but I’m stuck in it. vlw