/ Published in: jQuery
$('#myTable').find('.firstColumn').makeRed().append('hello');Â Â
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.fn.makeRed = function() {     return $(this).css('background', 'red'); }
URL: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx