web前端35个jQuery小技巧!
jquery吧
全部回复
仅看楼主
level 1
1. 禁止右键点击
$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
2. 隐藏搜索文本框文字
Hide when clicked in the search field, the value.(example can be found below in the comment fields)
$(document).ready(function() {
$("input.text1").val("Enter your search text here");
textFill($('input.text1'));
});
更多:http://www.cnot.top/index/show-374.html
2016年05月26日 01点05分 1
level 1
ding
2016年05月27日 03点05分 2
level 1
keng
2016年05月27日 08点05分 3
1