Friday, 28 October 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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...