I want to use :checked css pseudo-class to hide an element out of the parent of the checkbox . How i can do that ? There an exemple of my probleme:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div>
<input type="checkbox" name="checkbox" id="checkbox">
</div>
<div>
<span>Element to hide</span>
</div>
</body>
</html>
Thanks !
Aucun commentaire:
Enregistrer un commentaire