解决方案 »
- javascript报错
- 控制Ext中EditorGridPanel单元是否可编辑问题
- ext 查询,GridPanel怎么重新加载数据?
- MzTreeView怎样在节点聚焦的同时触发Click事件
- 如何显示输入框里输入的字数??
- 如何用脚本控制窗口的状态?(在线)
- ★★★★★ 求一个正则表达式 ★★★★★
- 急------如果让input中的数字不超过一个固定的数字?
- 好友列表怎样实现点击每个分组都可以显示或隐藏分组?
- 弱问,从这个页面的源码能找到播放歌曲的链接吗?就是可以直接下载歌曲的链接。
- 谁知道$( ".selector" ).menu({ menus: "div" });这段代码的意思?
- 求用jquery解决思路!
上面可以改成$("input[type=text],input[type=passoword]")
}这表达式的问题,IE6好像地这种写法是不兼容的,我记得好像是这个表达式比较耗资源,有时候可以,有时候不可以,不稳定。建议还是分开写!不要用这种表达式的形式!
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!
毕竟我这里不能直接element.setAttribute("className","inputIE")这样,还有其他的class在呢,不能直接赋值。。
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?是1.4的
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?不对,刚又看了下,应该是1.5.2
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?不对,刚又看了下,应该是1.5.2我用的1.7.1呢,你把我代码复制过去吧jquery的js 换成你的试试,可以不?
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?不对,刚又看了下,应该是1.5.2我用的1.7.1呢,你把我代码复制过去吧jquery的js 换成你的试试,可以不?嗯,好的,谢谢!我回去研究研究,先下班了。
求指教!!
Ie6不支持对input type的选择器啊
input[type='text']
$(':text')
这两种都IE6里都不支持。那要怎么办啊?
不会吧!
我去写个例子试试!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<script type="text/javascript">
$(function(){
alert($("input[type='text']").length);
alert($(":input").length);
alert($(":text").length);
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>经测试是可以的呢,可以获取到html控件!
你jquery是什么版本?不对,刚又看了下,应该是1.5.2我用的1.7.1呢,你把我代码复制过去吧jquery的js 换成你的试试,可以不?谢谢ly12530的帮助,我刚刚试了下,jquery的选择器,Ie6下果然是可用的。之前一直没效果,可能是代码其他地方有错,影响了吧。
就是在blur里removeClass之后再add一个blur状态下的Class,同时在focus里先remove掉那个class再add突出显示的class。
这样绕了一个圈子来实现效果。不过还是希望能有更优的解决方案,这个removeClass其实明明已经remove了,但就是那个css效果却是还在,真是奇怪!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../artDialog/jquery-1.7.1.min.js"></script>
<title>无标题文档</title>
<style type="text/css">
.focus{border:1px solid #000}
</style>
<script type="text/javascript">
$(function(){
$("input").focus(function(){
$("input").removeClass("focus");
$(this).addClass("focus");
});
})
</script>
</head><body>
<input type="text" class="class1" />
<input type="text" class="class2" />
<input type="text" class="class3" /></body>
</html>
是不是这个效果。
不是的,我是这样的:
$("input").focus(function(){
$(this).removeClass("blur");
$(this).addClass("focus");
});
$("input").blur(function(){
$(this).removeClass("focus");
$(this).addClass("blur");
});
不是的,我是这样的:
$("input").focus(function(){
$(this).removeClass("blur");
$(this).addClass("focus");
});
$("input").blur(function(){
$(this).removeClass("focus");
$(this).addClass("blur");
});
噢,具体需要具体实现。