Oy, that's an awful mistake! lol It's been a while since I've used checkboxes. That did the trick, thanks for the help.
Frederick Cheung wrote: > On Jun 16, 7:43�pm, Spencer Rogers <[email protected]> > wrote: >> Hey all I'm having problems getting the correct value of a checkbox. �I >> have an observe field that calls a javascript function whenever the >> checkbox is changed. �But for whatever reason the checkbox value always >> seems to be 1. �Perhaps I'm using the wrong syntax to get the value?... >> My code is below, any help would be greatly appreciated. > > The value of a checkbox doesn't change. You need to be checking > whether its checked property is true (or use something like prototypes > $F() method which abstracts away that sort of concern. > > Fred -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

