I did not make my question clear and left out some things so here is goes again.
I have two textboxes on my web form. When blank they are both required and are validated upon submit. However if one is filled in then the other is not required any more and the page should allow to validate successfully. Thanks On Jan 2, 12:50 pm, brian <bally.z...@gmail.com> wrote: > On Fri, Jan 2, 2009 at 10:16 AM,tawright915<tawright...@gmail.com> wrote: > > > I'm having problems wrapping my head around how to code this: > > > I have two textboxes both are required. However if a user fills out > > one of the textboxes then the other is no longer required. > > $('#the_form').submit(function() > { > return $('#textarea_1').val() || $('#textarea_2').val(); > > }); > > Obviously, you'd want to adjust that to give some feedback to the user.