layout: post title: Pitfall Delegate Event on iOS Safari Not Working
see example
$('body').on('click', '.J_button', function(e){
alert('clicked');
});
First click here
will not alert, while the second click here
alerts.
fix
class was added to the second one, appending cursor: pointer
style.
This fixed event delegation problem and added a visible click style to the clickable element.