◽ HTML & CSS & JS, jQuery

[jQuery - 기능 - (8) ] .change() - 작동 시 변경되는 이벤트

1
2
3
4
5
6
7
8
9
10
11
<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" />

코드 실행 : https://www.w3schools.com/code/tryit.asp?filename=G7D3V1B7FBOB

푸터바