Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to uncheck a checkbox in jquery

$("#myCheckBox").prop("checked", false);
Comment

jquery uncheck checkbox

$('#myCheckbox').prop('checked', true); // Checks it
$('#myCheckbox').prop('checked', false); // Unchecks it
Comment

get unchecked checkbox jquery

if ($("#check_box_id").is(':checked')) {
  alert("checked");
}else{
  alert("unchecked");
}
Comment

jquery checkbox unchecked

$("input:radio[name='NAME']:radio[value='VALUE']").attr("checked",true);
$("input:radio[name='NAME']").removeAttr("checked");
Comment

check / unchecked a checkbox with jQuery

<html>
<head>
<title>jQuery check / uncheck a check box example</title>
 
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>

</head>

<body>

<h1>jQuery check / uncheck a check box example</h1>

<script type="text/javascript">

  $(document).ready(function(){

    $("#isCheck").click(function () {
		
	alert($('input:checkbox[name=checkme]').is(':checked'));
			
    });
	
    $("#checkIt").click(function () {
		
	$('input:checkbox[name=checkme]').attr('checked',true);
			
    });
	
    $("#UnCheckIt").click(function () {
		
	$('input:checkbox[name=checkme]').attr('checked',false);
			
    });	
		
  });
</script>
</head><body>

<input type="checkbox" name="checkme">Check Me</input>

<br/>
<br/>
<br/>

<input type='button' value='Is Check' id='isCheck'>
<input type='button' value='Check It' id='checkIt'>
<input type='button' value='UnCheck It' id='UnCheckIt'>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: a href confirm javascript 
Javascript :: alpine js cdn 
Javascript :: toggle text jquery 
Javascript :: reload page javascript 
Javascript :: jquery link cdn 
Javascript :: yarn react-redux 
Javascript :: javascript string to dou 
Javascript :: load lodash chrome console 
Javascript :: json object length in javascript 
Javascript :: can we import jquery library from developer tools 
Javascript :: reset radio button jquery 
Javascript :: json encode js 
Javascript :: change input placeholder text jquery 
Javascript :: angular open poort in network 
Javascript :: change input to required jquery 
Javascript :: generate random hash in javascript 
Javascript :: javascript end of day 
Javascript :: javascript convert milliseconds to hh mm ss 
Javascript :: react native position absolute center 
Javascript :: length of dict js 
Javascript :: javascript for loop over dictionary 
Javascript :: javascript remove spaces at the beginning of the end of the string 
Javascript :: full width of image and maintain aspect ratio react native 
Javascript :: jquery click function 
Javascript :: javascript gcd 
Javascript :: how to Store Objects in HTML5 localStorage 
Javascript :: showing difference between dates in minutes js 
Javascript :: regex get number inside parentheses 
Javascript :: set value javascript by id 
Javascript :: Unable to resolve module react-navigation 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =