Jquery to open Bootstrap v3 modal of remote url

后端 未结 6 1235
孤街浪徒
孤街浪徒 2020-12-01 08:02

I have a page of links to internal pages I need to open up in a Bootstrap modal DIV. The problem is that it seems that using the latest version of Bootstrap v3 in conjunctio

6条回答
  •  爱一瞬间的悲伤
    2020-12-01 08:15

    In bootstrap-3.3.7.js you will see the following code.

    if (this.options.remote) {
      this.$element
        .find('.modal-content')
        .load(this.options.remote, $.proxy(function () {
          this.$element.trigger('loaded.bs.modal')
        }, this))
    }
    

    So the bootstrap is going to replace the remote content into

提交回复
热议问题