title: Check for class or name instead of ID (simple code)
body: <p>I am new to jQuery and have created a little code snippet to check if any (i.e. one or more) of the following IDs is visible on a form. </p>
  
  <p>The code works fine but I was wondering if I could achieve the same by checking for a class or name that I could assign to each ID so that it could also handle more IDs and I dont have to mention each of them separately. </p>
  
  <p>Can someone here help me with this and tell me how to write it properly. </p>
  
  <p><strong>My Code (working):</strong> </p>
  
  <pre><code>if(($('#fail1').is(':visible')) || ($('#fail2').is(':visible')) || ($('#fail3').is(':visible')))
  {
      // do something;
  }
  </code></pre>