我想要一个单独的 DIV 来保存输入以改变背景颜色。我如何将它添加到我现有的有效代码中?
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("input:[type=text]").focus(function () {
jQuery(this).addClass("highLightInput");
});
jQuery("input:[type=text]").blur(function () {
jQuery(this).removeClass("highLightInput");
});
});
</script>