Some more details...
The generic javascript map function allows you to loop all array elements
and perform a function on each...
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map
Instead of map you could also use *jQuery.each()*...
$.each(array, function(index, element){
//do something
});
This is a bit more generic in that you can not only use it with arrays but
also with jQuery collections, e.g.
$.each( $('.myClass') , function(index, element){
//do something
});
...which (for jQuery collections) does the same as...
$('.myClass').each( function(index, element){
//do something
});
Obviously, a generic loop will do too. ;-)
Cheers, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.