#table_a

$('#table_a tbody tr').alternate({hover:true},function(){$(this).toggleClass('selected')});

cell cell cell
cell cell cell
cell cell cell
cell cell cell

#table_b

$('#table_b tbody tr').alternate({odd:'off', even:'on'});

cell cell cell
cell cell cell
cell cell cell
cell cell cell

#list_a

$('#list_a li').alternate();

#list_b

$('#list_b li').alternate({odd:'', even:'', hover:true});