Make jQuery validator validate hidden inputs on submit

I have a button like

<button onclick="$('#myForm').submit()>Submit!</button>

which validates all inputs and submits if validated. I have one hidden input that I want validated as well. The inputs inside the form are all validated whenever their value changes, too. What I want to set the validator to validate hidden inputs.

All the examples I see on the internet are like

$("#myform").validate({
   ignore: ":hidden"
});

which invokes the validation which is what I don't want. I want to define what happens whenever it is invoked. Does that make sense?