title: Redirect Using jQuery
body: <p>So I'm using jquerymobile for an app I'm creating.  I have a link that if all the validation passes I'd like to go through, but if something fails I'd like to redirect. </p>
  
  <p>In the jquery something like this.  Since it is jquerymobile the link will be a new div on the same index.html page - if that helps.</p>
  
  <pre><code>$(#link).click(function(){  
    if(validation_fails) link_elsewhere;  
    else return true;
  }
  </code></pre>