I have a simple add attribute function:
$(\".list-toggle\").click(function() { $(\".list-sort\").attr(\'colspan\', 6); });
My question is:
If you're feeling fancy:
$('.list-sort').attr('colspan', function(index, attr){ return attr == 6 ? null : 6; });
Working Fiddle