02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

do something…<br />

})<br />

hidden.bs.modal<br />

Fired when the modal has finished<br />

being hidden from the user.<br />

$('#identifier').on('hidden.bs.modal',<br />

function () {<br />

// do something…<br />

})<br />

EXAMPLE<br />

The following example demonstrates the usage of events:<br />

Example of using events of Modal Plugin<br />

<br />

<br />

Launch demo modal<br />

<br />

<br />

<br />

<br />

<br />

<br />

×<br />

<br />

<br />

This Modal title<br />

<br />

<br />

<br />

Click on close button to check Event functionality.<br />

<br />

<br />

<br />

Close<br />

<br />

<br />

Submit changes<br />

<br />

<br />

<br />

<br />

<br />

<br />

$(function () { $('#myModal').modal('hide')})});<br />

<br />

<br />

$(function () { $('#myModal').on('hide.bs.modal', function () {<br />

alert('Hey, I heard you like modals...');})<br />

});<br />

<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!