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') }
},
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
2 matches
Mail list logo