Improve your jQuery - 25 excellent tips


/ Published in: jQuery
Save to your folder(s)

$('#myTable').find('.firstColumn').makeRed().append('hello');  


Copy this code and paste it in your HTML
  1. $.fn.makeRed = function() {
  2.     return $(this).css('background', 'red');
  3. }

URL: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.