$(function(){ var hash = window.location.hash; hash && $(hash).find('td').css({'background-color': '#FF00FF'}) })