mercredi 13 avril 2022

What is the opposite of :checked [duplicate]

I have a jquery script like this:

$(document).ready(function() {
            if ($('#type_seller_correction').is(":unchecked")) // check if the checkbox is not checked
            {
                console.log("unchecked");
            }
});

But this does not work because :unchecked is wrong.

And I don't know what is the opposite of :checked in this situation.

So how can I check if the checkbox is unchecked?




Aucun commentaire:

Enregistrer un commentaire