जक्वेरी रेफरेंस मैनुअल - चयनक
- पिछला पृष्ठ जक्वेरी रेफरेंस मैनुअल
- अगला पृष्ठ जक्वेरी इवेंट
जक्वेरी चयनक
चयनक | उदाहरण | चयन करना |
---|---|---|
* | $("*") | सभी एलिमेंट |
#आईडी | $("#lastname") | id="lastname" एलिमेंट |
.क्लास | $(".intro") | सभी class="intro" एलिमेंट |
एलिमेंट | $("p") | सभी <p> एलिमेंट |
.क्लास.क्लास | $(".intro.demo") | सभी class="intro" और class="demo" एलिमेंट |
:first | $("p:first") | पहला <p> एलिमेंट |
:last | $("p:last") | अंतिम <p> एलिमेंट |
:even | $("tr:even") | सभी संख्य एलिमेंट <tr> |
:odd | $("tr:odd") | सभी असंख्य एलिमेंट <tr> |
:eq(इंडेक्स) | $("ul li:eq(3)") | सूची में चौथा एलिमेंट (इंडेक्स 0 से शुरू होता है) |
:gt(no) | $("ul li:gt(3)") | सूची में इंडेक्स बड़ा 3 से बड़ा होने वाले एलिमेंट |
:lt(no) | $("ul li:lt(3)") | index छोटा 3 होने वाले एलीमेंट को सूचीबद्ध करें |
:not(selector) | $("input:not(:empty)") | सभी खाली नहीं होने वाले input एलीमेंट |
:header | $(:header) | सभी शीर्षक एलीमेंट <h1> - <h6> |
:animated | सभी एनिमेटिंग एलीमेंट | |
:contains(text) | $(:contains('W3School')) | सभी विशिष्ट शब्द शामिल एलीमेंट |
:empty | $(:empty) | सभी बेनी उपबंध (एलीमेंट) के एलीमेंट |
:hidden | $("p:hidden") | सभी छुपे हुए <p> एलीमेंट |
:visible | $("table:visible") | सभी दृश्यमान तालिकाएँ |
s1,s2,s3 | $("th,td,.intro") | सभी मेल खाते चयनित एलीमेंट |
[attribute] | $("[href]") | सभी जो href अट्रिब्यूट रखते हैं के एलीमेंट |
[attribute=value] | $("[href='#']") | सभी href अट्रिब्यूट के मान जो "#" से समान है के एलीमेंट |
[attribute!=value] | $("[href!='#']") | सभी href अट्रिब्यूट के मान जो "#" से बेहतर नहीं है के एलीमेंट |
[attribute$=value] | $("[href$='.jpg']") | सभी href अट्रिब्यूट के मान जो ".jpg" से समाप्त होते हैं के एलीमेंट |
:input | $(:input) | सभी <input> एलीमेंट |
:text | $(:text) | सभी type="text" के <input> एलीमेंट |
:password | $(:password) | सभी type="password" के <input> एलीमेंट |
:radio | $(:radio) | सभी type="radio" के <input> एलीमेंट |
:checkbox | $(:checkbox) | सभी type="checkbox" के <input> एलीमेंट |
:submit | $(:submit) | सभी type="submit" के <input> एलीमेंट |
:reset | $(:reset) | सभी type="reset" के <input> एलीमेंट |
:button | $(:button) | सभी type="button" के <input> एलीमेंट |
:image | $(":image") | सभी type="image" के <input> एलिमेंट |
:file | $(":file") | सभी type="file" के <input> एलिमेंट |
:enabled | $(":enabled") | सभी सक्रिय input एलिमेंट |
:disabled | $(":disabled") | सभी निष्क्रिय input एलिमेंट |
:selected | $(":selected") | सभी चयनित input एलिमेंट |
:checked | $(":checked") | सभी चयनित input एलिमेंट |
देखें
शिक्षा दर्शन:jQuery एलिमेंट चयनकर्ता व्याकरण
- पिछला पृष्ठ जक्वेरी रेफरेंस मैनुअल
- अगला पृष्ठ जक्वेरी इवेंट