Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Use jQuery to get values of selected checkboxes?
Yes, we can use jQuery to get values of selected checkboxes using the concept of input. We have to also use the :checked selector.
Example
Following is the code −
Document
To run the above program, save the file name anyName.html(index.html) and right click on the file. Select the option “Open with live server” in VS Code editor.
This will produce the following output −

Now, select the checkbox −

This will produce the following output on console −

Advertisements
