Trigger event on Hiding modal box

Some of the peoples will be using this for Bootstrap3 to hide modal box. Some may be facing issues on using this function,
$('#myModal').on('hidden.bs.modal', function () {
   alert("hii");
});

So, here is the solution for all who are all facing issues, This function will work in all the browsers where as, the above function will not work in some browsers such as chrome, etc.

$('#myModal  button').click(function () {
    $('#myModal iframe').removeAttr('src');
});

Comments

Popular posts from this blog

Setting up Virtual Host in Local machine (Wamp Server)

Get Android version using Javascript

Array to JSON