Possible Duplicate:
Validating url with jQuery without the validate-plugin?
is there any jquery method to check a url is valid?
or can jquery get http header
? some code method like this.
js code:
$('#submit').click(function(){
var url = $('#url').val();
// check a url is valid?
});
html code:
<input id="url" name="url" type="text">
<input type="submit" name="submit" id="submit" value="submit" />