> 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...

Using metadata requires the metadata plugin. Please take a look at the
dependencies section on the plugin page:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

Regards
Jörn

Reply via email to