解决方案 »

  1.   

    根据ID获取元素  #
    $('#pubshuoshuo_content')
      

  2.   


    $('#pubshuoshuo_content').bind({
        focus:function(){
                $(this).css('border','1px solid #f00');
         },
            blur:function(){
                 $(this).css('border','none');
         }
     });
      

  3.   

     $(document).ready(function(){
        $('#pubshuoshuo_content').bind(
            'focus',function(){
                $(this).css('border','1px solid #f00');
            }). bind('blur',function(){
                $(this).css('border','none');    });  });
      

  4.   

    $('this')没有引号
      

  5.   

    是呀!太马虎了!!刚开始学习jQuery,以后还得请教大家,小弟谢谢大神们了。。