मुझे यह html मिला है:दृश्य तालिका पंक्तियों की संख्या गिनने के लिए jquery चयनकर्ता?
<table>
<tr style="display:table-row"><td>blah</td></tr>
<tr style="display:none"><td>blah</td></tr>
<tr style="display:none"><td>blah</td></tr>
<tr style="display:table-row"><td>blah</td></tr>
<tr style="display:table-row"><td>blah</td></tr>
</table>
मुझे पंक्तियों की संख्या गिनने की आवश्यकता है जो display:none
नहीं है। मैं उसे कैसे कर सकता हूँ?
और यदि आप केवल टेबल-बॉडी में दृश्य पंक्तियों को शामिल करना चाहते हैं तो $ ('tr: visible') का उपयोग करें। लंबाई - $ ('thead> tr')। –