-1
I built a code that when the condition is true shows the component on the screen and when it is false hides the component. When the condition is false the first time it hides, but changing to true condition the component does not appear.
Follow the code below:
function VerificarDeposito(){
if ($('#DadosComplementares').val()=="SIM"){
document.getElementById('Painel4').style.display = 'true';
}else{
document.getElementById('Painel4').style.display = 'none';
};
}
Good afternoon! I saw that you canceled my answer. This is no problem, but if you can say if it didn’t work I would like to improve it. Obg!
– Sam