JQuery Validation Issues
JQuery Validation Issues
Having issues getting jquery validation to work, any help would be greatly appreciated!
HTML
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title> Form Scrape </title>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
- <script src="validation/dist/jquery.validate.js"></script>
- <link href="theme/jquery-ui.css" rel="stylesheet">
- <link href = "css/formPrototype.css" rel="stylesheet">
- <script src="theme/jquery-ui.js"> </script>
- <script src="js/formValidation1.js"> </script>
- </head>
- <body>
- <div id = "userForm">
- <div id = "tabs">
- <ul>
- <li><a href = "#userInfo"> Your Information </a> </li>
- <li><a href = "#eventInfo"> Event Information </a> </li>
- </ul>
-
- <div id = "userInfo">
- <form id = "1">
- <span> Name </span> <br /><input type="text" id = "userName" required autofocus> <br />
- <span> City </span> <br /> <input type="text" id = "userCity"> <br />
- <span> Phone Number </span> <br /> <input type="tel" id = "userPhone" required> <br />
- <span> Email </span> <br /> <input type="email" id = "userEmail" required> <br />
- <input type="checkbox" id = "emailCheck" value = "Yes"> Is it okay for Prestige to email you? <br /> <br />
- <span> Company (If Applicable) </span> <br /> <input type="text" id = "userCompany"> <br /> <br />
-
- <span> Password </span> <br /> <input type="password" id = "userPassword" required> <br />
- <span> Verify Password </span> <br /> <input type="password" id = "userPasswordVerify" required> <br />
- </form>
- </div>
- <div id = "eventInfo">
- <form id = "2">
- <span> Type of Event </span> <br />
-
- <input type="radio" name = "eventType" value = "Wedding" class="radioButton"> Wedding <br />
- <input type="radio" name = "eventType" value = "Party" class = "radioButton"> Party <br />
- <input type="radio" name = "eventType" value = "Banquet" class = "radioButton"> Banquet <br />
- <input type="radio" name = "eventType" value = "Birthday" class = "radioButton"> Birthday <br />
- <input type="radio" name = "eventType" value = "WorkEvent" class = "radioButton"> Work Event <br />
- <input type="radio" name = "eventType" value = "Other" class = "radioButton"> Other <input type="text" id = "other"> <br /> <br />
-
- <span> Date of Event </span> <br />
- <input type= "text" id = "eventDate" class="datepicker" required> <br /> <br />
-
- <label for = "genre"> Genre of Music</label>
- <select name = "genre" id = "genre">
- <option>Rock</option>
- <option>Country</option>
- <option>Pop</option>
- <option>Jazz</option>
- <option>Blues</option>
- <option>Folk</option>
- <option>Alternative</option>
- <option>Swing</option>
- <option>Reggae</option>
- <option>Electronic</option>
- <option>Hip-Hop</option>
- <option> R&B </option>
- </select>
- <br />
-
- <p>
- <label for="budget">What is your budget? </label>
- <input id="budget" name="budget" required>
- </p>
- </form>
- <button type="submit" id="submit"> Submit </button>
- <button type="button" id="reset"> Reset </button>
- </div>
- </div>
- <div id = "output"></div>
- </div>
- </body>
- </html>
Javascript