mardi 2 décembre 2014

jquery bound event doesn't fire on mobile phones

Heyho,

i want to bind an event to a HTML tablerow. This seems to work on common desktop browsers but not on mobile phone browsers. Tested on iPhone 6 and some Android devices.

Here's a related fiddle,

and this is my code:



$("body").on("click", "tr", function(){
//do something
})


I can't use an click event on the tablerow itself (which seems to work) because the table is generated after pageload. Thanks for your input.




Aucun commentaire:

Enregistrer un commentaire