Usually validations work independent with respective binded content, eg http://jsfiddle.net/supercool/JL26Z/53/
But I have two text boxes name1
& name2
, as mentioned in fiddle, I need to do show validation is failed if following condition fails:
name1
is mandatory ifname2
is not entered.name2
is mandatory ifname1
is not entered.- if
name1
&name2
left empty i need to show error message i.e validations failed.
If I got you confused: in short I am looking for validations to pass if text is entered in any of the textboxes.