jquery check if checkbox is not checked
if (!$("#checkboxID").is(":checked")) {
// do something if the checkbox is NOT checked
}$('#isAgeSelected').click(function() {
$("#txtAge").toggle(this.checked);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<input type="checkbox" id="isAgeSelected"/>
<div id="txtAge" style="display:none">Age is something</div>
Also in JavaScript:
- react router tutorial medium
- username validation in javascript
- number format reactjs
- javascript add class
- js object properties
- javascript .tolowercase
- how to set validation for email in javascript
- mongoose sparse index
- has own propriety javascrip
- angular pipe json error
- react native post api method
- javascript string format
- discord.js bot credits command
- turn number into array javascript
- flutter CircularProgressIndicator
- how to limit input type max length
- PayloadTooLargeError: request entity too large using express json middleware
- loopback upsert
- create global variable inside function JavaScript
- mongodb nodejs connect localhost
- how to change a string to number in javascript
- js regex to find string but not another
- get width of a dom element js
- check if javascript function is true