$(document).on('submit', '#print-protocol-form', function() { $('#print-protocol-modal').modal('hide'); });