使用引导程序模式提交/更新操作

时间:2019-04-04 02:23:54

标签: bootstrap-modal

我想通过单击引导程序模式弹出窗口来提交表单。当前单击“是”后,弹出窗口消失但没有任何更新。

  <!--html-->

 <html:submit property="method" value="Update" styleClass= "btn1 popup"
     onclick="return openUpdatePopup('${data1.type}');" />

  <!--modal-->

 <div class="modal fade" id="demo-warning-modal" aria-hidden="true"
    data-keyboard="false" data-backdrop="static" tabindex="-1" 
    role="dialog" aria-labelledby="myModalLabel">
 <div class="modal-dialog" role="document">

 <div class="modal-content">
     <div class="modal-header">
        <h4 class="modal-title">Warning </h4>
     </div>
     <div class="modal-body">
        ${requestScope.msg }
     </div>
 <div class="modal-footer">
        <button id="btnResetCancelled" type="button" class="btn-
     secondary btn1 btn4 edit" data-dismiss="modal" >Cancel</button>              
        <button id="btnResetData" type="button" class="btn-primary btn1
     run"  data-dismiss="modal" >Yes, reset data</button>  
     </div>
  </div>
 </div>
 </div>

 function openPopup(title){

 $('#demo-warning-modal > .modal-dialog > .modal-content > .modal-
   header').html(' <h4 class="modal-title">'+title+' </h4>');        
 $('#demo-warning-modal').modal('show');
 return false;
}

0 个答案:

没有答案