sphinx Posted November 25, 2011 Share Posted November 25, 2011 Hello, For some reason, this jquery is not operating: <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.js" type=”text/javascript”></script> <script type="text/javascript"> $("#CustomerForm").validate({ errorLabelContainer: $("#RegisterErrors"), rules: { FirstNameEdit: { required: true }, LastNameEdit: { required: true }, EmailEdit: { required: true, email: true } }, messages: { FirstNameEdit: "First name is required", LastNameEdit: "Last name is required", EmailEdit: "Valid email address is required" } }); </script> <form id="CustomerForm"> <p> <label for="FirstNameEdit">First Name:</label> <input id="FirstNameEdit" type="text" class=”required” /> </p> <p> <label for="LastNameEdit">Last Name:</label> <input id="LastNameEdit" type="text" class=”required” /> </p> <p> <label for="EmailEdit">Email:</label> <input id="EmailEdit" type="text" class=”required email” /> </p> <p> <button type="submit">Submit</button> </p> </form> <div id="RegisterErrors" style="display:none"> Many thanks Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted November 25, 2011 Share Posted November 25, 2011 first step here would be to check your jquery source paths to make sure that they are linking correctly. Then you will want to debug your javascript using either an online resource like jslint.com or firefox's plugin "firebug". If you still cannot find the error here, feel free to write back on here and we will take a further look. Quote Link to comment Share on other sites More sharing options...
Adam Posted November 28, 2011 Share Posted November 28, 2011 Are you writing this mark-up in MS Word, or have you just copied it? The formatting has broken the quotes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.