url地址验证
<!--url地址验证,本案例使用了jQuery的jQuery validate插件-->
<script src="js/jquery.validate.min.js"></script>
<script>
$().ready(function() {
$("#myform").validate();
});
jQuery.extend(jQuery.validator.messages, {
required: "必填",
url: "请输入合法的网址",
});
</script>
<form action="" id="myform">
<p>
<label for="curl">URL</label>
<input id="curl" type="url" name="url" required>
</p>
</form>
<!--url地址验证end-->