Friday, October 28, 2016

javascript - Show/hide input field based on checkbox




If the checkbox is clicked it will display an input field... so far it it is working, But if the checkbox is unchecked it should hide it, how can i do it?



    












Here is the script



      

Answer



$("#clases").change(function () {

$("#descripcion").toggle();
});

No comments:

Post a Comment