toggle modal jquery code example
Example 1: onclick open modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Example 2: onclick open modal jquery
$('#myModal').modal('show');
Example 3: jquery data-toggle modal and tooltip
<span data-toggle="modal" data-target="modal">
<a data-toggle="tooltip" data-placement="top" title="Tooltip">
Hover Me
</a>
</span>
Example 4: onclick open modal jquery
$('#my-modal').modal({
show: 'false'
});