클릭 이벤트를 비활성화하고 해당 항목을 클릭하면 div를 비활성화하려고합니다. 이 기능을 수행 할 수 없습니다. 어떤 도움이 필요합니까? 대신이의 What I have triedJquery div를 비활성화하고 클릭을 비활성화하십시오.
<div class="ordrClone">
Image 1
</div>
<div class="ordrClone">
Image 2
</div>
<div class="ordrClone">
Image 3
</div>
<div>
<input type="button" id= "btnCancel" value="Enable">
</div>
$('.ordrClone').click(function() {
$('.ordrClone').not(this).each(function() {
$(this).off('click');
});
});
$('#btnCancel').click(function() {
$('.ordrClone').each(function() {
$(this).on('click');
});
});