Problem solved.. $().ready(function() { var container = $("div.container");
var validator = $("#form_request_item").validate({ errorContainer: container, errorLabelContainer: $("ul", container), wrapper: "li", meta: "validate", submitHandler: function(form) { $("button").attr('disabled', 'disabled'); form.submit(); } }); }); On Aug 18, 1:37 pm, fieory <fie...@gmail.com> wrote: > Hi Jörn, > > I'm totally newbie toJqueryand i'm usingjQueryvalidationplug-in > 1.5.5 written by you to validate form. I've tried todisablesubmitbuttonbased > on example given but it didn't work(refer to code below). > Then have tried to change form to "#form_request_item" but it still > same. I have also tried to place it injQueryfile but didn't work > either. May be because I'm not so familiar and wrongly placed it. > Would really appreciate if you could help. Thank you so much. > > $().ready(function() { > var container = $("div.container"); > > var validator = $("#form_request_item").validate({ > errorContainer: container, > errorLabelContainer: $("ul", container), > wrapper: "li", > meta: "validate", > submitHandler: function(form) { > $(form).find(":submit").attr("disabled", "disabled").attr > ("value","Submitting..."); > form.submit(); > } > }); > }); > > - Fieory - > > On Aug 10, 9:01 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com> > wrote: > > > Try this: > > > $(document).ready(function() { > > $("#myForm").validate({ > > submitHandler: function(form) { > > $(form).find(":submit").attr("disabled", true).attr("value", > > "Submitting..."); > > form.submit(); > > } > > }) > > > }); > > > Jörn > > > On Mon, Aug 10, 2009 at 9:40 AM, Rich Sturim<cosmos99...@gmail.com> wrote: > > > $(document).ready(function() { > > > $("#myForm").validate() > > > });