Replacing onclick='alert("value="+displayphone1value) with
onclick='alert("value="+$F("selectdisplayphone1")) will produce the
output you're looking for.
The problem is that in your original code "var displayphone1value =
$F("selectdisplayphone1");" is only evaluated once at page load time,
not every time the event handler is called.
Tom
On Aug 9, 2:44 pm, Josh C <[EMAIL PROTECTED]> wrote:
> by the way, I'm using the latest release of prototype
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---