[jQuery] what's better?
[jQuery] what's better?
hi
just needed an advice...
what' s better between this two (if there's any difference at all):
this:
$('a[class^=open]').click(function(){
...whatever...
});
or this:
var myEl = $('a[class^=open]');
$(myEl).each(function(){
$(this).click(function(){
...whatever...
});
)};
thanks
Vitto