+ 1
Can anyone detail the following code ?
$(".tab-content").find(".define[dataaction=_eventListener]").unbind().bind("click", function (e) {//function code here}
1 Antwort
+ 1
Find any elements matching ".tab-content .define[dataaction=_eventListener]" and reattach a click listener to them, removing all listeners first.
MATCHING HTML EXAMPLE
<div class="tab-content">
...
<button class="define" dataaction="_eventListener">Click me!</button>
...
</div>