On Mar 19, 12:45 pm, "Martin Ström" <[EMAIL PROTECTED]>
wrote:
> Also remember that you can use #invoke instead of #each for these kind
> of things.
>
> div.invoke('setStyle', {display: 'block'});
nope.
Same error.
With this code all works:
for (var i = 0; i<div.size();i++)
{
$(div[i].id).setStyle({display:'block'});
//div.invoke('setStyle', {display: 'block'});
}
But I don't understand because it.
M.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---