lhgdialog簡單彈出框解析

父頁面:

$("#jobName").click(function(){
     $.dialog({
title:'任務',
width:'400px',
height:'450px',
lock:true,
content: 'url:selectCompany.do',
close: function(){
window.location.reload();

});

      });

彈出頁:

向父頁面傳值

<script  type="text/javascript">
var api = frameElement.api, W = api.opener;
 function returnV(rvalue){
W.document.getElementById('txt2').value = rvalue;
     parent.location.reload()
 }
</script>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章