I don't know much Javascript yet, I was hoping someone could help me figure out how to solve my problem:
In my HTML form there is a checkbox and then textarea :
<form> <input type="checkbox" name="detailsgiven" /> <textarea name="details"></textarea> </form>
I want textarea disconnect when the checkbox checked so that the user cannot click it and enter text.
I looked here and on Google, I could not find clear examples of how to do this.
I assume this can be done in Javascript, but I feel a little deeper. Can someone explain to me how to do this, preferably without using a third-party library?
source share