Good!
I have this example that I picked up from w3schools.com
but they show me how to lock it, but not unlock it.
<!DOCTYPE html>
<html>
<body>
Checkbox: <input type="checkbox" id="myCheck">
<p>HACER CLICK PARA DESHABILITAR.</p>
<input type="checkbox" onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myCheck").disabled = true;
}
</script>
</body>
</html>
I guess it could be done with an operation contrary to clicking that I don't know... or the same option with a different function in the script (which I experimented with but it doesn't work)
Thank you
you could do the following:
Evaluate in the click event if it is disabled to re-enable it and vice versa :D
I hope it helps you, greetings.
That should work, however I recommend you use jquery