JQUERY/함수
hover()
나이많은 초보
2022. 8. 28. 19:12
<h3>hover()함수 : enter와 leave</h3>
<p>
mouseenter + mouseleave
</p>
<h1 id="test1">hover Test !</h1>
<script>
$(function(){
$('#test1').hover(
function(){$(this).css('background','yellow')},
function(){$(this).css('background','green')}
);
});
</script>

