[jQuery] Re: plugin does not validate form at all...

2009-05-03 Thread ecognium
Sorry :( made a typo in the above code.. here is the right version.. $("#uploadform").validate({ rules: { id11: { required: true, depends: function(element) {return $("#id1").is(':visible') } },

[jQuery] Re: plugin does not validate form at all...

2009-05-03 Thread ecognium
Sorry, the above code did not have any metadata. I tried it with the rule specification and it works when both the "file" and "text" elements are missing. But then when I enter the value for one of them and hit Submit, the form gets submitted. I am not sure what I am doing wrong... Please let me k