Thanks for your reponses Guys, especially Ryan & troels.

Like I mentioned earlier, what do you think about using the $$ function?

This time I'll take an example -

$$('table#main td.active').each(updateClassName(elm, newClass))

Find all <td> elements with class "active", all inside  the <table> with id 
"main" and update their class to notactive.

I'll write updateClassName myself.

Let me know what you think.

Thank you,
Mandy.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to