title: jquery: if url contains #work then do something
body: <p>I tried to write a script which allow me to load certain events when I enter specific url.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>$(function(){
      var url = window.location.pathname;
      $("url:contains('#Work')").animate({"left": "250"}, "slow");
  });
  </code></pre>
  
  <p>But it doesnt work. Any suggestions? Any help is appreciated.</p>