Closed RamsesSerna closed 4 years ago
I'm having this trouble.
I'm traying to verify if the checkbox is checked when the element changes but the element never change it state. Here is the code:
$('#ws_swtch').change(function (e) { e.preventDefault(); if ($(this).is(':checked')) { $('#col_url').removeClass('oculto'); $('#col_catalogo').addClass('oculto'); } else { $('#col_catalogo').removeClass('oculto'); $('#col_url').addClass('oculto'); } });
I'm having this trouble.
I'm traying to verify if the checkbox is checked when the element changes but the element never change it state. Here is the code: