My HTML:
------------------------------
<form id="someForm">
      <input type="radio" id="myRadio_1" name="myRadio" />
      <label for="myRadio_1">Radio 1</label>

      <input type="radio" id="myRadio_2" name="myRadio" />
      <label for="myRadio_2">Radio 1</label>

      <input type="radio" id="myRadio_3" name="myRadio" />
      <label for="myRadio_3">Radio 1</label>
</form>

My Javascript:
---------------------------------
Event.observe('myRadio_3', 'click', function() {alert('some logic goes
here');});


My Issue:
---------------------------------
I am having an issue with an event getting attached to an entire radio
button list, and not a single radio button when using Event.observe.

Note that using Event.observe will create a click event handler for
each radio button in the list, whereas, manually attaching the onclick
handler within the HTML itself (i.e. onclick="alert('some logic goes
here);" ), functions correctly.

Is this an issue with Prototype, or my usage?  Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to