/*) (function($){ $.fn.selectMe = function() { return this.each(function() { if (typeof(this.selected) != 'undefined') { $(this).attr('selected','selected'); }; }); } })(jQuery); // Checks a form element () (function($){ $.fn.checkMe = function() { return this.each(function() { if (typeof(this.checked) != 'undefined') { $(this).attr('checked','checked'); }; }); } })(jQuery); // Unchecks a form element () (function($){ $.fn.uncheckMe = function() { return this.each(function() { if (typeof(this.checked) != 'undefined') { $(this).removeAttr('checked'); }; }); } })(jQuery); // Stripe a table (function($){ $.fn.stripeMe = function() { return this.each(function() { $('tbody tr.zebra', this).removeClass('zebra'); $('tbody tr:odd', this).addClass('zebra'); $('tr', this).each(function(n){ $('th:first,td:first', this).addClass('first'); $('th:last,td:last', this).addClass('last'); }); }); } })(jQuery); /*]]>*/