I mounted 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';
};
}