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 :: javascript group array by key 
Javascript :: javacript open url in new tab 
Javascript :: updating react version 
Javascript :: your company assigns each customer a membership id 
Javascript :: discord.js get attachment url 
Javascript :: sequelize pagination postgres 
Javascript :: pdf.js cdn 
Javascript :: jquery if screen size 
Javascript :: unique array javascript es6 Map 
Javascript :: document.ready shorthand 
Javascript :: refresh date and time every second angular 
Javascript :: search in a table jquery 
Javascript :: jquery get first character of string 
Javascript :: express js limit access based on rate 
Javascript :: pattern telefone js 
Javascript :: check for substring javascript 
Javascript :: check if string is valid json dart 
Javascript :: coldfusion user defined function 
Javascript :: js add value to html input 
Javascript :: element without a particular class jquery 
Javascript :: delay js function 
Javascript :: react native activity indicator 
Javascript :: convert base64 string to byte array javascript 
Javascript :: ckeditor change value 
Javascript :: js reduce concat numbers 
Javascript :: adonis js sort by 
Javascript :: js replace non a-z 
Javascript :: how to just have createdAt mongoose 
Javascript :: how to open html file with javascript 
Javascript :: check a checkbox jquery 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =