Skip to content

Instantly share code, notes, and snippets.

@vincentdeelen
Created April 16, 2014 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdeelen/10847349 to your computer and use it in GitHub Desktop.
Save vincentdeelen/10847349 to your computer and use it in GitHub Desktop.
add classes to each table row, except for the empty rows
$('#report_dept10 .uReportStandard tBody tr:not(:first)').each(
function(){
$(this).addClass( "emp ui-widget-content" );
var idVal = $(this).find('td[headers="EMPNO"]').html();
$(this).first('td').attr("id",idVal);
}
)
$('#report_dept20 .uReportStandard tBody tr:not(:first)').each(
function(){
$(this).addClass( "emp ui-widget-content" );
var idVal = $(this).find('td[headers="EMPNO"]').html();
$(this).first('td').attr("id",idVal);
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment