onclick="$('#modal_id').modal('hide');" will close only the particular modal in which it is placed.
please note if it is this answer is useful.
Solution 3:
If u use multiple modals on one page open at the same time on top of each other dismissing the topmost with data-dismiss="modal" will hide all active modals.
Solution 4:
exactly in bootstrap.js find the element with attribute data-dismiss="modal" and trigger this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) behind. i.e. it hides the element but in more complex way.
Share
Post a Comment
for "Understanding How Data-dismiss Attribute Works In Bootstrap"
Post a Comment for "Understanding How Data-dismiss Attribute Works In Bootstrap"