我有 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 厚框][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>
关于IE 中没有 Jquery 厚框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6833348/