title: Get last visible element using jQuery
body: <pre><code>&lt;table&gt;
      &lt;tr class="here" id="t1" number="1" &gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="here" id="t2" number="2" &gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="here" id="t3" number="3" style="display:none"&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="here" id="t4" number="4" style="display:none"&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;span id="check"&gt;check&lt;/span&gt;
  
  $('#check').click(function(){        
      check = ???;
     alert(check);
  })
  </code></pre>
  
  <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/vUukc/1/" rel="noreferrer">http://jsfiddle.net/vUukc/1/</a></p>
  
  <p>How can I get the attribute <code>number</code> from last visible <code>tr</code> in this example? This is an example - all <code>&lt;tr&gt;</code> could be visible.</p>