I have included jquery file and following HTML
<script src="jquery-1.7.js"></script>
HTML:
<form action="http://www.google.com" onSubmit="return validate();">
<input type="text" required="true" name="URL" >
<input type="submit" value="Submit">
</form>
When i submit form with empty field give the message "Please fill out the field" but if i write wrong URL i didn't find any message and form submit.
How can i do URL validation?
validate()function. Also, you only need one version of jQuery.