focus:当某个表单输入域获得焦点时调用
<script src="D:/myweb/jquery-1.9.1.js"></script>
<script>
$(document).ready(function(){
$("input").focus(function(){
$(this).css("background-color","#fff333");
});
});
</script>
blur:当某个表单输入域失去焦点时调用
<script src="D:/myweb/jquery-1.9.1.js"></script>
<script>
$(document).ready(function(){
$("input").blur(function(){
$(this).css("background-color","#fff333");
});
});
</script>