I am using the following Javscript to change table data element ID on mouse over so that I can apply different CSS on the mouse action. It is working fine, but only on the first row of my table. Does anyone know how I can amend the script so that it is applied to each individual row in my table?
$('#tdcns').mouseover(function(){
$(this).attr('id', 'hovertdcns');
});
$('#tdcns').mouseout(function(){
$(this).attr('id', 'tdcns');
});
Any guidance is much appreciated!