can we check url validity with jquery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2723140/validating-url-with-jquery-without-the-validate-plugin">Validating url with jQuery without the validate-plugin?</a>  </p>
</blockquote>



<p>is there any jquery method to check a url is valid? </p>

<p>or can jquery get <code>http header</code>? some code method like this.</p>

<p>js code:</p>

<pre><code>$('#submit').click(function(){
  var url = $('#url').val();
  // check a url is valid?
});
</code></pre>

<p>html code:</p>

<pre><code>&lt;input id="url" name="url" type="text"&gt;
&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;
</code></pre>
