$(".QuesComment").each(function(){
   
    $(this).val('请输入100字以内的评语').css('color','#666666');
   
   
    $(this).focus(function(){
         
     $(this).css('color','#000');
        
     if(!this.initValue){
      this.initValue = this.value;
     }
     
     if(this.value === this.initValue){
      this.value = '';
     }
     
     }).blur(function(){
      
      if(this.value === '' || this.value === null){
       this.value = this.initValue;
       $(this).css('color','#666666');
       
      }
     });
    })

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-10-15
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-09
相关资源
相似解决方案