/ Published in: jQuery
Quando a tabela é clicada, checa-se qual célula dela foi clicada e colore-se seu fundo de vermelho.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#myTable').click(function(e) { var clicked = $(e.target); clicked.css('background', 'red'); });