Hello,
Can you tell me please the difference between the two operations belows?
This one:
And this one:
The thing is, the first one works but not the second one... It's for event Delegation.
Can you tell me please the difference between the two operations belows?
This one:
JavaScript:
#If javascript
$(".dropdown").on("click", ".dropdown-item", function(){
_B[("HandleDropdownItemClicks").toLowerCase()](event,_B);
});
#End If
And this one:
B4X:
Dim jq As BANanoObject
jq.Initialize("$")
jq.Selector(".dropdown").RunMethod("on", Array("click", ".dropdown-item", BANano.CallBack(Me, "HandleDropdownItemClicks", Null)))
The thing is, the first one works but not the second one... It's for event Delegation.