When I have multiple divs like...
<div class="parent">
<button class="children">click</button>
</div>
<div class="parent">
<button class="children">click</button>
</div>
(Normally, I add this html by using jQuery)
I will my buttons will work only one time per one button
$('.parent').on('click', '.children', function () {
alert('test');
$(this).off('click','.children');
});
I have no idea how to .off()
click event each button ?
Playground : http://jsfiddle.net/AYwhL/
PS : jQuery 1.9+
PS : I dont want to cancel all button events