title: How to make a fluid anchor scrolling in a select option
body: <p>I can't make a fluid scrolling with a select option element, only with a link. Can anyone help me?</p>
  
  <p><a href="http://jsfiddle.net/4bHG2/" rel="nofollow">jsfiddle demo</a>!</p>
  
  <pre><code>$(function() {
    $('a[href*=#]:not([href=#])').click(function() {
      if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') &amp;&amp; location.hostname == this.hostname) {
        var target = $(this.hash);
        target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
        if (target.length) {
          $('html,body').animate({
            scrollTop: target.offset().top
          }, 1000);
          return false;
        }
      }
    });
  });
  </code></pre>
  
  <p>Thanks!</p>