title: Fancy URL for result page of instant jQuery search script
body: <p>I have a Google Instant style search script written in jQuery. When the user queries, #<strong>SEARCHTERM</strong> is added onto my page URL. How can I make it so that my URL is something like #search/<strong>SEARCHTERM</strong>/1/?</p>
  
  <p>My jQuery code is:</p>
  
  <pre><code>$(document).ready(function(){
      $("#search").keyup(function(){
          var search=$(this).val();
          var query=encodeURIComponent(search);
          var yt_url='search.php?q='+query+'&amp;category=web';
          window.location.hash=query;
          document.title=$(this).val()+" - My Search Script";
          if(search==''){
              document.title='My Search Script';
          }
          $.ajax({
              type:"GET",
              url:yt_url,
              dataType:"html",
              success:function(response){
                  $("#result").html(response);
              }
          });
      });
  });
  </code></pre>