I have a table and I want to colorize my only 3 first row after .sortable()
!
$("table tbody").sortable();
$('table').mouseup(function(){
setTimeout(function() {
$("table tr:eq(1)").addClass("Color2_c Color1_b");
$("table tr:eq(2)").addClass("Color2_c Color1_b");
$("table tr:eq(3)").addClass("Color2_c Color1_b");
},50);});
Any suggestion to also uncolorize the following rows?
I think .removeClass is what you're after: