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
Psychology,
6 months ago
History,
6 months ago
Chemistry,
6 months ago
Computer Science,
11 months ago
Math,
11 months ago
Science,
1 year ago
Biology,
1 year ago
Art,
1 year ago