<input type="text" id="target"></textarea>
<input id="remove" type="button" value="remove" />
<p id="status"></p>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
var handler = function(e){
$('#status').text(e.type+Math.random());
};
$('#target').on('focus blur', handler)
$('#remove').on('click' , function(e){
$('#target').off('focus blur', handler);
console.log(32);
})
</script>


'오락기 > js' 카테고리의 다른 글

jQuery ajax  (0) 2017.04.19
ajax + servlet  (0) 2017.04.19
jQuery On evnet  (0) 2017.04.18
input evnet  (0) 2017.04.18
load event  (0) 2017.04.18

+ Recent posts