1
group1 입력에서 group2 입력으로 이동하면 흐림 이벤트가 감지되어 추가 작업을 수행 할 수 있습니다. 흐림 이벤트가 부모의 위쪽으로 전파되지 않습니까?부모 요소에서 흐림 이벤트를 catch하는 방법
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<html>
<head>
<script type="text/javascript">
$(document).ready(function() {
$("[data-id=container]").on("blur", function() {
alert("Blur caught in parent");
});
});
</script>
</head>
<body>
<div data-id="container" style="border: 1px solid gray;">
Group 1
<input type="text" />
<input type="text" />
<input type="text" />
</div>
<div data-id="container" style="border: 1px solid gray;">
Group 2
<input type="text" />
<input type="text" />
<input type="text" />
</div>
</body>
</html>
그룹 1 http://stackoverflow.com/questions/1259716/how-to-blur-the-div-element – Satpal
보고 2 형제가 아닌 부모입니다 -> 아이 –