Hey Frank,

frank a écrit :
> onChange: function(){

Since onChange takes the changed element as an argument, and there is a
"_" in the ID, try this:

onChange: function(elt) {
    var suffix = elt.id.split('_')[1];
    //...
}

'Should work.

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to