 <p>Are you using on document ready, also check your table markup if it is malformed you command will not work.</p> <p>Broken example here <a href="http://jsfiddle.net/DVxSy/72/" rel="nofollow">http://jsfiddle.net/DVxSy/72/</a> no table tags<br/> Working here <a href="http://jsfiddle.net/DVxSy/71/" rel="nofollow">http://jsfiddle.net/DVxSy/71/</a></p>