jquery validate plugin - ignore not visible inputs, but include hidden inputs with class
<p>I have a form that changes the inputs displayed on screen depending on a drop down list value.
<br>
This ignore definition works fine and does not validate any inputs with <strong>ignore</strong> class and that are <strong>not visible</strong>.<br></p>

<pre><code>ignore: ":not(:visible), .ignore",
</code></pre>

<p>But the problem now is when I want to validate a few <code>hidden</code> inputs with class '<strong>validate</strong>' , so I changed this to:</p>

<pre><code>ignore: ":hidden:not(.validate), :not(:visible), .ignore",
</code></pre>

<p>But the <strong>:not(:visible)</strong> blocks it. How to apply these 2 rules together so I will be able to ignore not visible inputs and validate hidden inputs with <strong>'validate'</strong> class?</p>