Does anyone see the flaw in my code here, because this one has me stumped!
function removeMLRow(rowNo) {
$('#ml_organize li:eq(' + (rowNo - 1) + ')').remove();
$($('#ml_organize li:eq(' + (rowNo) + ')').get().reverse()).each(function() {
var newID = 'li' + ($(this).index() - 1);
$(this).attr('id',newID);
});
}