Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New User #30

Closed
georgefant opened this issue Aug 31, 2013 · 2 comments
Closed

New User #30

georgefant opened this issue Aug 31, 2013 · 2 comments

Comments

@georgefant
Copy link

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

<!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.

@whatgoodisaroad
Copy link
Owner

Hi, georgefant,

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?

@georgefant
Copy link
Author

Thank you....

I will check to make sure they are loading propely

On Sat, Aug 31, 2013 at 7:17 PM, Wyatt Allen notifications@github.comwrote:

Hi, georgefant,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants