jQuery foucs blur 问题 jquery表单focusblur 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 根据ID获取元素 #$('#pubshuoshuo_content') $('#pubshuoshuo_content').bind({ focus:function(){ $(this).css('border','1px solid #f00'); }, blur:function(){ $(this).css('border','none'); } }); $(document).ready(function(){ $('#pubshuoshuo_content').bind( 'focus',function(){ $(this).css('border','1px solid #f00'); }). bind('blur',function(){ $(this).css('border','none'); }); }); $('this')没有引号 是呀!太马虎了!!刚开始学习jQuery,以后还得请教大家,小弟谢谢大神们了。。 鼠标右键的问题 关于marquee无缝循环 JavaScript 正常表达式问题 如何获取文本框被选中元素的值???????? 大家的 alert(12*1.2) 显示什么值啊 请教高手,javascript自定义对象方法的问题 求正则 10位数 0至9 不重复 各位大虾!今天有海鲜吃了.要大家帮忙啦,有关JS、数据库和iframe 想做一个新奇的自动播放…… 有没有人在租用空间阿!我不是打广告,我只是有东西问! onclick问题 选项卡代码问题:刷新页面保持原来选项,怎么做?
$('#pubshuoshuo_content')
$('#pubshuoshuo_content').bind({
focus:function(){
$(this).css('border','1px solid #f00');
},
blur:function(){
$(this).css('border','none');
}
});
$('#pubshuoshuo_content').bind(
'focus',function(){
$(this).css('border','1px solid #f00');
}). bind('blur',function(){
$(this).css('border','none'); }); });