$(function(){
$("#ctl00_txtKey").val("请输入搜索keyword").addClass("search")
.blur(function(){
$(this).removeClass('highligth');
if($(this).val()==""){
$("#ctl00_txtKey").val("请输入搜索keyword").addClass("search");
}
})
.focus(function(){
$(this).addClass('highligth');
if($(this).val()=="请输入搜索keyword"){
$("#ctl00_txtKey").val("").removeClass("search");
}
});
});
搜索框中“请输入搜索keyword”
推荐阅读
- Python3操作MySQL数据库
- 使用Git出现以下错误"Git@github.com: Permission denied (publickey). Could not read from remote repository."解决方案
- yaml文件存放测试用例
- 我对standard、singleTop、singleTask和singleInstance四种Activity启动模式的理解
- 手机端优化列表滚动性能——分页加载
- cookie的secure属性
- 安卓webview下使用zepto的swipe遇到的坑
- 制作html邮件的注意点
- iOS沙盒路径的查看和使用
- Xcode报错:“Your build settings specify a provisioning profile with the UUID..... however, no such provisioning profile was found”