I call this JS function on a submit to compare passwords. The console is showing me that the $ is not defined. Not sure what is going on?
 <input type="submit" name="submitButton" id="submitButton"  
  OnClick="CodeBehindMethod" runat="server" />
<script type="text/JavaScript">
$(document).ready(function () {
  $("#submitButton").click(
     function (e) {
         var pass = $('#password').val();
     if (!pass || pass === "") {
            this.errors.push("Please enter a password");
        }
        else if (pass !== $('#password1').val()) {
            this.errors.push("Passwords do not match");
        }
        this.printErrors();
    });
  });
 
     
    