[SOLVED] Form listener, get all inputs...
I'm trying to get a script working which will go through a form, when it submits, and disable any fields which have no value...
Here's the code I have thus far; the script is
not making it into the jQuery(':input',this).each(function().. line.. Anyone have any ideas?
-
jQuery(document).ready(function(){
jQuery('form').submit(function(){
jQuery(':input',this).each(function() {
if(this.value=='')
jQuery(this).disable();
});
return false;
});
});