摘要: $(function(){ $("#eg01").focus(function(){ $(this).addClass("focus"); if($(this).val() == this.defaultValue){ $(this).val(""); } }).blur(function(){$(this).removeClass("focus"); if($(this).val()== ''){ $(this).val(this.defaultValue); } }) })上述代码 其中 if( 阅读全文
posted @ 2013-01-15 17:57 林悠扬 阅读(218) 评论(2) 推荐(0) 编辑