<p>I need to figure out what div is visible out of four possible divs using jQuery.  Only one of those div's will be visible at any given time.</p>

<p>This is what I have that works so far:</p>

<pre><code>$("#FeatureImage1:visible, #FeatureImage2:visible, #FeatureImage3:visible, #FeatureImage4:visible").attr("id");
</code></pre>

<p>Is there a way to refactor this?  Is there an easier way to figure this out?</p>

Assign the same class to each div then:
```
```
$("div.myClass:visible").attr("id");
```
```