Hello.
I'm trying to get a form to use jQuery Tool's form validator: http://flowplayer.org/tools/validator/
I'm pretty sure I have everything set as it should be, but no effect seems to be taking place. I can click submit on the form without filling out any fields and it goes straight to the thank you page.
Here is my form HTML:
<form action="salesforce_url_here" method="POST" id="form_ID" novalidate>
The "novalidate" is the FF4 fix.
Here is the call to the tools js file in template.php:
drupal_add_js('sites/all/themes/our_theme/js/jquery.tools-current.min.js',
array('type' => 'inline', 'scope' => 'header', 'weight' => -50)
);
I'm sure my weight is too high into the negative... just trying to make sure it loads before others, although it still didn't make it to the top...
Lastly, here is the call to the validator, also in template.php just a few lines down from the above:
drupal_add_js(
'jQuery(document).ready(function() {
jQuery("#form_ID").validate();
})'
, 'inline'
);
I may be going about this the wrong way...
It would be nice if this worked for D7: http://drupal.org/node/1114130 ... but not sure if that would solve the problem either. When I firebug the tools js file is in fact being loaded...