- 实现点击输入框,输入框背景颜色变化
keyup()
<input name="test">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script>
$("input").keyup(function(){
$("input").css("background-color","#D6D6FF");
});
</script>