Jquery Find - Visible only
<p>I want to check if the div contains a children with class "error" but with the condition that the error class display is not equal to none. (Meaning error class must be visible.</p>

<p>How can change my code below:</p>

<pre><code> $(".related_field").each(function(){
     var $widthAdj = $(this).find(".autoDiv");
     if($(this).find(".error").length == 0){  //MUST BE VISIBLE "ERROR" CLASS ONLY
        $widthAdj.css("height","48px");
     } else {
        $widthAdj.css("height","63px");
     }
 });
</code></pre>
