【问题标题】:Jquery thick box is not coming in IEIE 中没有 Jquery 厚框
【发布时间】:2011-07-26 16:26:39
【问题描述】:

我有 jquery 粗框,点击某个链接就会加载它。

然后,如果我单击厚框表单上的单选按钮,它将关闭厚框表单并打开另一个厚框表单。

但是第二个粗框没有出现在 IE 中。 它在 Mozilla 中工作

这是我的代码

<script type="text/javascript">


/* Display the search popup according to the radio button selection **/
function show_search (value)
{

    tb_remove();
    var url= 'url1'; 


    setTimeout("tb_show('Change Details','"+url+"');",1*500);
    return false;
}

 </script>

<form class="jNice" action="" method="post" onsubmit="javascript:return formCarSrch_validate(this);" id="hotel_search_popup">

                <h2>Search Hotels</h2>
                 <input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/><label>Flight</label>

</form>

【问题讨论】:

    标签: jquery thickbox


    【解决方案1】:

    查看以下链接中的文档:

    [JQuery 厚框][1]

    [1]:http://jquery.com/demo/thickbox/

    并使用以下代码:

    <html>
    <head>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="thickbox.js"></script>
    <script type="text/javascript">
     function show_search (value)
      { 
       var url= 'http://www.google.com'; 
       tb_show('Change Details','"+url+"');   
       setTimeout("remove()",1*100);
       return false;
      }
      function remove()
      { 
        tb_remove();    
        alert("check");
       } 
     </script> 
    </head> 
    <body>
    <form id="hotel_search_popup">
    <h2>Search Hotels</h2>
    <input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/>
    <label>Flight</label>
     </form>
     </body>
     </html>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多