Hiding form using check box

Avatar

Avatar

kamalams6577372

Avatar

kamalams6577372

kamalams6577372

10-02-2021

Hi all,

Can anyone help me how to hide and unhide a form depends on checkbox selection. 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Anudeep_Garnepudi

MVP

Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
MVP

10-02-2021

@kamalams6577372 

Try the below snippet.

$(document).on("change", "./checkbox-name", function(e) {
    if($(this).prop("checked")) {
        // Logic Checked
    } else {
        // Logic un checked
    }
});

Answers (0)