Jquery TextBox进入focus的时候 改变background-color
<!DOCTYPE html>
<html>
<head>
<script src="/jquery/jquery-1.11.1.min.js">
</script>
<script>
$(function () {
$(":text").blur(function () {
$(this).css("background", "white");
}).focus(function () {
$(this).css("background", "yellow");
});
})
</script>
<style type="text/css">
.bg
{
background: whrte;
}
</style>
</head>
<body> <input type="text" />
<input type="text" />
<input type="text" />
</body>
</html>