if(!$('input:value').is(:checked)){
//do something
}
How do i do this, i can´t find an example? I want to know if a checkbox with a specific value has been checked.
if(!$('input:value').is(:checked)){
//do something
}
How do i do this, i can´t find an example? I want to know if a checkbox with a specific value has been checked.
 
    
    loop through checkboxex and then check as below
var c=$(".commonclassname");
for(var i=0;i<c.length;i++)
{
   if(c[i].value=="your value")
   {
     //matched...
   }
}
 
    
    Here's how to detect if a checkbox with a particular value gets unchecked
$("input[type=checkbox]").click(function() {
    if ($(this).val() == "test2" && !$(this).is(":checked")) {
        alert("Unchecked Test2");
    }
});
Fiddle: https://jsfiddle.net/vwm28b7u/1/