how to cloase modal in jas code example Example: javascript modal close $('#closemodal').click(function() { $('#modalwindow').modal('hide'); });