How to add checkbox in HTML ?
Answers
Answered by
0
Answer:
<input id="checkBox" type="checkbox">
<script>
$('#checkBox'). click(function(e){
if (e. target. checked) {
localStorage. checked = true;
} else {
localStorage. checked = false;
}
Explanation:
Similar questions