Repainting an element with jQuery
// Repaint an element $.fn.repaint = function() { var display = this.css('display'); this.css('display', 'none'); this.css('display', display); };