I would think something similar to this (untested): myFieldName: { required: function() { return !$(this).is(':hidden'); } }
Not sure if $(this) actually references the field. Might want to test that out. On Oct 16, 10:18 am, buntu <buntu.w...@gmail.com> wrote: > Hi, > > I've an input field in the form which is displayed based on the user > selection. Initially it is set to 'display:none' and I do have a > validation rule for that field. > > How do I skip validation on this hidden input field and only validate > when its displayed on the page. > > Thanks for the help!