Thanks, Alexandre
I had checked the path over and over and tried add document, but the same validation without document worked well for another form on the site. What I didnt realize is that in the validation js filename, I had a _ where it should have been a . . How frustrating to spend so much time for such a tiny mistake! But at least its finally working! Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: Sunday, October 28, 2007 3:44 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Ok... I give up... why is this message occuring? well, the firebug message indicates that the validation.js file is not loaded correctly. Check the path. Also, use the standard $(document).ready(function(){...}); instead of $().ready _____ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: dimanche 28 octobre 2007 3:25 To: jquery-en@googlegroups.com Subject: [jQuery] Ok... I give up... why is this message occuring? Hi, all.. Im using Joerns validation plug-in and Im getting an error message. The strange thing is, I use the same plug-in on a different page for a different form and it works perfectly. Firebug tells me this: $(#trans_add_form).validate is not a function (and it also has beneath that: trans_location: {required: Please enter the transaction location.} Heres the code any clues, someone? Thanks! Rick <script type="text/javascript"> // $.validator.defaults.debug = true; $().ready(function() { $("#trans_add_form").validate({ errorPlacement: function(error, element) { error.appendTo("#" + element.attr('id') + "_error"); }, focusInvalid: "false", event: "keyup", rules: { trans_name: {required: true}, trans_category: {required: true}, trans_amount: {required: true, numerical: true }, trans_tofrom: {required: true }, trans_description: {required: true}, trans_date: {required: true, date: true}, trans_time: {required: true}, trans_location: {required: true} }, messages: { trans_name: {required: "Please enter a name for the debit."}, trans_category: {required: "Please choose a category for this transaction."}, trans_amount: {required: "Please enter the transaction amount.", numerical: "Please enter the dollar amount of the transaction."}, trans_tofrom: {required: "Please enter who the transaction amount was to or from."}, trans_description: {required: "Please enter a description of the transaction."}, trans_date: {required: "Please enter the date of the transaction. (Format: Feb 12, 2007)", date: "This entry must be a valid date. (Format: Feb 12, 2007)"}, trans_time: {required: "Please enter a valid time for the transaction. (Format: 10:00 am)"}, trans_location: {required: "Please enter the transaction location."} } }) }); </script> Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.503 / Base de données virus: 269.15.12/1096 - Date: 27/10/2007 11:02