![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
109 Views
The :selected selector in jQuery is used to selects option elements that are pre-selected.SyntaxThe syntax is as follows −$(":selected")ExampleLet us now see an example to implement the jQuery :selected selector − .one { background-color: green; color: white; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
140 Views
The :root selector in jQuery is used to select the document's root element.SyntaxThe syntax is as follows −$(":root")ExampleLet us now see an example to implement the jQuery :root selector − $(document).ready(function(){ $(":root").css("color", "red"); }); Heading One Heading Two ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
177 Views
The :reset selector in jQuery is used to select button and input elements with type reset.SyntaxThe syntax is as follows −$(":reset")ExampleLet us now see an example to implement the jQuery :reset selector − .one { background-color: blue; color: white; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
161 Views
The :radio selector in jQuery is used to select input elements with type radio.SyntaxThe syntax is as follows −$(":radio")ExampleLet us now see an example to implement the jQuery :radio selector − $(document).ready(function(){ $(":radio").wrap(""); }); Register Username: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
64 Views
The :password selector in jQuery is used to select input elements with type password.SyntaxThe syntax is as follows −$(":password")ExampleLet us now see an example to implement the jQuery :password selector − .one { background-color: blue; color: white; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
135 Views
The :parent selector in jQuery is used to select all elements that are the parent of another element.SyntaxThe syntax is as follows −$(":parent")ExampleLet us now see an example to implement the jQuery :parent selector − .one { background-color: blue; color: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
85 Views
The :only-of-type selector in jQuery is used to select elements which are the only child of its type of its parent.SyntaxThe syntax is as follows −$(":only-of-type")ExampleLet us now see an example to implement the jQuery :only-of-type selector − .one { color: white; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
216 Views
The :only-child() selector in jQuery is used to select elements that is the only child of its parent.SyntaxThe syntax is as follows −$(":only-child")ExampleLet us now see an example to implement the jQuery :only-child() selector − .one { color: white; background-color: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
54 Views
The :odd selector in jQuery is used to select odd elements i.e. with odd index number.Note − The :odd selector deprecated in jQuery 3.4SyntaxThe syntax is as follows −$(":odd")ExampleLet us now see an example to implement the :odd() selector − .one { background-color: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
163 Views
The :nth-of-type() selector in jQuery is used to select all elements that are the nth child of a particular type of their parent.SyntaxThe syntax is as follows −:nth-of-type(n|even|odd|formula)Above, the n parameter is the index of each child to match. The even parameter selects even child element, whereas odd selects odd ... Read More