Computer Science, asked by password999, 11 months ago

How to add checkbox in HTML ?​

Answers

Answered by dhruvalbhinsara460
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