After performing a search on the Site, I found this question with solution , but the solution is in jquery
!
When choosing option X, I need a specific field to be disabled and only be enabled again if another option is activated!
I need this solution in JavaScript
(every project is in JavaScript) .
<button id='btn_habilitar'>Habilita</button>
<button id='btn_desabilitar'>Desabilita</button>
<br>
<br>
<textarea id='obs' placeholder='Observação!'></textarea>