mvc client validation doen't work display none

Code Example - mvc client validation doen't work display none

                
                        // By default validator ignores hidden fields.
// change the setting here to ignore nothing
$.validator.setDefaults({ ignore: null });