1 개요[ | ]
- jQuery .change()
- jQuery change 이벤트
2 소스 코드[ | ]
html
Copy
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script>
$(function() {
$(".my_inputs").change( function() {
$(this).css("background-color", "yellow");
});
});
</script>
<input class="my_inputs" type="text" value="hello" />
<input class="my_inputs" type="text" value="world" />
3 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.