You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded your code and attempted to use. Using dreamweaver and just running the file in a browser, not running from web server. I cannot get it to work. I would appreciated some assistance. Code is listed below
Thank you
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" rel="Stylesheet" href="Assets/css/jquery.validity.css" />
<script type="text/javascript" src="Assets/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="Assets/js/jquery.validity.js"></script>
<script type="text/javascript">
// Select all of the forms on the page (in this case the only one)
// and call 'validity' on the result.
$("form").validity(function() {
$("#vehicles") // The first input:
.require() // Required:
.match("number") // In the format of a number:
.range(4, 12); // Between 4 and 12 (inclusively):
$("#dob") // The second input:
.require() // Required:
.match("date") // In the format of a date:
.lessThanOrEqualTo(new Date()); // In the past (less than or equal to today):
});
});
</script>
</head>
<body>
<form method="get" action="validate.html">
Number of Vehicles:
<input type="text" id="vehicles" name="vehicles" title="Vehicle Count" />
<br /><br />
Date of birth:
<input type="text" id="dob" name="dob" title="Birthday" />
<br /><br />
<input type="submit" />
</form>
</body>
</html>
Edited for formatting.
The text was updated successfully, but these errors were encountered:
I don't see any obvious problems with your code. I went ahead and updated the tests because I noticed you are using jQuery 1.10.2, but I didn't find any problem there.
Can you describe how it is failing? Have you confirmed that the script files are loading properly?
I don't see any obvious problems with your code. I went ahead and updated
the tests because I noticed you are using jQuery 1.10.2, but I didn't find
any problem there.
Can you describe how it is failing? Have you confirmed that the script
files are loading properly?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-23615775
.
George G. Fant
Chief Information Officer
3102 Omega Office Park, Fairfax, VA 22031
703-359-0200 ext. 411
Hello,
I downloaded your code and attempted to use. Using dreamweaver and just running the file in a browser, not running from web server. I cannot get it to work. I would appreciated some assistance. Code is listed below
Thank you
Edited for formatting.
The text was updated successfully, but these errors were encountered: