1
2
- $("body").on("click touchstart", ".klase", function() {
+ $("body").on("click touchstart", ".klase", function(e) {
Si se tienen muchos elementos y es necesario agregar un evento a cada uno de ellos, este snippet le agrega un evento 'click' a todos los elemento con la clase 'klase' y retorna los elementos hijos.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.