Is it possible to use data-attributes to with the JQuery Validate plugin. I currently use the class name e.g.
class="{required:true, messages:{required:'You must choose a site.'}}"`
but need to use the data attribute e.g.
data-validate="{required:true, messages:{required:'You must choose a site.'}}"`
The inputs may have more than one data attribute associated with it which won't be related to the validation e.g.
<input name="txt_txt001" type="text" maxlength="30" id="txt_txt001" class= "
{required:true, messages:{required:'This field is required.'} }" data-
children="ddl_txt007,ddl_txt008" data-optionGroup="1" data-optionGroupParent="" />
I know the ketchup plugin offers this but dont want to move over to it as I've put loads of work into getting the page setup with JQuery Validate.
Thanks