/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Si tenemos: var animales = ['Gato', 'Perro', 'Perico', 'Abeja']; // Podemos usar la función .each() que nos proporciona jQuery. $.each(animales, function(indice, animal){ // hacer algo con animal // El código se ejecutará en este bloque // por cada uno de los animales // return false serÃa igual a break })
Comments
