JQuery .focusin() .focusout()

1 개요[ | ]

jQuery .focusin()
jQuery .focusout()
html
Copy
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$(function(){
	$('#textarea1')
		.focusin(function() {
			$('body').append("<br>focusin...");	
		})
		.focusout(function() {
			$('body').append("<br>focusout...");	
		});
});
</script>

<textarea id='textarea1'></textarea>

2 같이 보기[ | ]