Bootstrap Modal弹出窗口第一次不显示

时间:2019-01-31 05:05:42

标签: c# jquery asp.net-mvc twitter-bootstrap bootstrap-modal

当我第一次单击此#btnRequestedProviderSelect按钮时,引导程序模式未显示弹出窗口。但是我第二次点击它会为什么?

$("#btnRequestedProviderSelect").click(function () {
  $("#hdnORProvider").val('Requested');
  $.ajax({
    type: "Get",
    async: false,
    url: settings.ProviderSearchPopupURL,
    data: {
      coverageID: 0,
      fromPage: settings.Frompage, HPID: $('#MemberHealthPlanID').val(),
      LOBID: $("#MemberLOBID").val(), IPAID: $("#MemberIPAID").val()
    },
    success: function (data) {
      $("#divProviderSearch").html(data);
      $("#divProviderSearchPopup").modal();
      $('#divProviderSearchPopup').modal({
        keyboard: false
      });
      $('#divProviderSearchPopup').modal('show');
    }
  });				
});
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>

0 个答案:

没有答案