Evento individual a un grupo de elementos

1
2
$("body").on("click touchstart", ".klase", function(e) {
e.preventDefault();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.