Estoy tratando de hacer un cuadro de selección personalizado con barra de búsqueda usando html css y js. una vez hecho, no funcionó (la barra de desplazamiento no funcionó y la barra de búsqueda también)
Para mostrar algo de texto cuando la casilla de verificación está marcada:
HTML:
Checkbox: <input type="checkbox" id="myCheck" onclick="myFunction()"> <p id="text" style="display:none">Checkbox is CHECKED!</p>JavaScript:
function myFunction() { // Get the checkbox var checkBox = document.getElementById("myCheck"); // Get the output text var text = document.getElementById("text"); // If the checkbox is checked, display the output text if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; }}