<table> <tr class="here" id="t1" number="1" ><td>1</td></tr> <tr class="here" id="t2" number="2" ><td>2</td></tr> <tr class="here" id="t3" number="3" style="display:none"><td>3</td></tr> <tr class="here" id="t4" number="4" style="display:none"><td>4</td></tr> </table> <span id="check">check</span> $('#check').click(function(){ check = ???; alert(check); })
演示:http://jsfiddle.net/vUukc/1/@H_502_5@