Home > DeveloperSection > Forums > Skip validating field from hidden div?
Jayden Bell
Jayden Bell

Total Post:105

Points:739
Posted on    October-04-2014 4:26 AM

 JQuery JavaScript  JQuery 
Ratings:


 1 Reply(s)
 813  View(s)
Rate this:
i tried with this code:

$('#myFormId').validate({

        ignore: ":hidden"

    });

but this code does not give desire out put.



Kamlakar Singh
Kamlakar Singh

Total Post:194

Points:1396
Posted on    October-04-2014 4:28 AM

try this code:

<script>

    $('#myFormId').validate({

        ignore: ".hidden"

    });

</script>

<style>

    .hidden

    {

        visibility: hidden;

    }

</style>


Don't want to miss updates? Please click the below button!

Follow MindStick