您的位置:首页 > Web前端 > JQuery

[jQuery] Form中会导致IE6崩溃的提交 -- Crash of the form in IE6

2010-06-23 14:22 696 查看
页面代码如下: -- As the code below

代码

<script type="text/javascript">
//<![CDATA[
function sbSearch()
{
if(jQuery("#sbText").val() == "Search text" || jQuery("#sbText").val() == "")
{
alert("Please fill the field!");
jQuery("#sbText").focus();
return false;
}
else
{
jQuery("#sbSearchForm")[0].submit();
}
}
//]]>
</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐