Skip to content
Related Articles

Related Articles

jQuery | :checkbox Selector

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 27 Feb, 2019

The checkbox is a very important element to make interactions with a user. In JQuery, we can build a simple checkbox to allow data entry as well.



We can implement the checkbox in the code:

<!DOCTYPE html>
    <script src=
        p {
            font-size: 20px
        $(document).ready(function() {
            "<span style='background-color:green'>");
    <h2>Add your Hobbies:</h2>
        <input type="checkbox"
        <br> Painting:
        <input type="checkbox"
        <br> Singing:
        <input type="checkbox"


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!