I\'m very much a noob, so I think I\'m overseeing something (probably obvious) with twitter bootstrap modal. What I am trying to do is get a modal to launch only on mobile.
.modal('hide') manually hides a modal. Use following code to close your bootstrap model
$('#myModal').modal('hide');
Take a look at working codepen here
Or
Try here
$(function () { $(".custom-close").on('click', function() { $('#myModal').modal('hide'); }); });
Launch demo modal × Modal title My Custom Close Link