How do I permanently save the checkbox
---- \
<!DOCTYPE html>
<html>
<body>
<form action="">
<input type="checkbox" name="box" value="Bike">Pago<br>
<input type="checkbox" name="box" value="Car">Nao Pago
</form>
</body>
</html>
How do I permanently save the checkbox
---- \
<!DOCTYPE html>
<html>
<body>
<form action="">
<input type="checkbox" name="box" value="Bike">Pago<br>
<input type="checkbox" name="box" value="Car">Nao Pago
</form>
</body>
</html>
Just add the checked
attribute of the input this way is already marked when the page is opened.
Recommended reading: