I want to perform a validation on a button to clean my forms by clicking on the exit button:
if (document.getElementById('btnsalirmodalf').onclick == true) {
document.getElementById('asignadoa').value == '';
document.getElementById('Estatus').value == '';
document.getElementById('porcentaje').value == '';
document.getElementById('exampleFormControlTextarea1').value == '';
document.getElementById('exampleFormControlTextarea2').value == '';
}
The problem is that I do not know if in this part:
document.getElementById('btnsalirmodalf').onclick == true
I'm doing it well since I do not make any changes to click on exit. Do you have a suggestion please?