I'm trying to change the value of the first cell on the last row of a table.
My code is:
$(document).ready(function() {
$('table.class tr:last td:first').html('Value');
});
But that code changes nothing, but if I put without the :last and :first he fills the all table with 'Value'. What am I doing wrong?
Edit: My bad, the code works fine, but just for the last table with class 'class'.What I need it's to do that on every tables with that class. Any idea?