Subscribe to my Feed, follow me on Twitter, recommend me on Working With Rails or see my code on GitHub
Comment
You're viewing a comment to the post FormHelper
Subscribe to my Feed, follow me on Twitter, recommend me on Working With Rails or see my code on GitHub
You're viewing a comment to the post FormHelper
If you're raking the leaves and it gets all over your driveway, just hose it off dummy!
By Steven Garcia at Fri 14 Mar 21:19
First of all thanks for writing this up. I am trying to move my JS into unobtrusive waters and stuff like this is a godsend.
Secondly, I am having a bit of trouble adapting this to my needs. Right now you seem to be using dom class hooks on the first select tags and are setting the target select by its dom id.
But what if I want one select list to update all the select lists on the page with a certain class?
How should I modify the js to loop through all the classes instead of targeting one id?