<script type="text/javascript">
$(function () {
$("input:text").blur(function () {//失去焦点时
if ($(this).val().length > 0)
$(this).css("background", "red");
else
$(this).css("background", "white");
})
})
</script>
blur事件
最新推荐文章于 2024-07-28 02:32:55 发布