$('#Z1034_Info tr').toggle(function(){ $(this).addClass('trBg');},function(){ $(this).removeClass('trBg');});