onclick modal hide jquery code example
Example: hide and show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');