Hi all,
I have a form, generated with php, which spits out a number of sets of
fields (title, forename, surname etc.), which I need to validate.
However, because I don't know how many sets of field there might be, i
can't use the rules/messages as I usually do:
$("#booking-stage-2").validate({
event: "blur",
errorClass: "required",
errorLabelContainer: $("#errors"),
wrapper: "li",
rules: {
g12_title_1: "required"
},
messages: {
g12_title_1: "Please choose a title."
}
});
"g12_title_1" would be from 1 to an unknown number.
I therefore want to use validate in it's simple form as
$("#booking-stage-2").validate();, and put the requirements inline as
class="{required:true}". However, adding
$("#booking-stage-2").validate(); to my script brings up the error
"jQuery(a).data is not a function" in the console window of FireBug. Can
anyone shed some light on what this means, or where I'm going wrong? I
can't see why it would fall over on such a simple example. I can give
access to the live page if needed, but it's not for general consumption
yet...
This is all with jQuery 1.1.3 and validate() 1.1
Thanks,
Luc Pestille
Web Designer in2, Thames House, Mere Park, Dedmere Road, Marlow, Bucks, SL7 1PB tel: +44 (1628) 899700 | fax: +44 (1628) 899701 | email: [EMAIL PROTECTED] | web: www.in2.co.uk This message (and any associated files) is intended only for the use of [email protected] and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not [email protected] you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored. Any views or opinions presented are solely those of the author [email protected] and do not necessarily represent those of the company.
<<inline: in2logo_long.gif>>

