jQuery Checkbox Selector



The jQuery :checkbox selector is used to select input elements with type checkbox.

Syntax

The syntax is as follows −

$(":checkbox")

Example

Let us see an example to implement the :checkbox selector in jQuery −






Fill the form

ID:
Rank:
Fav. Subjects: Maths: English

Output

This will produce the following output −

Example

Let us see another example −






Hobbies

Player Name:
Fav Sports Football: Cricket


Output

This will produce the following output −

Updated on: 2019-11-05T06:56:05+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements