> I created a form with a radio section. But i just can't figured out > how to put an onclick funktion to one single Button...
Ideally, you would not use an onclick attribute at all, but instead use an event listener to watch for that specific radio button being clicked. You would first look at the HTML source and get the specific element's id, like "Category0" for example. If you are familiar with jQuery or Prototype, two popular JavaScript frameworks, each can do this type of event listening to watch for only one specific element being clicked. See http://docs.jquery.com/Events or http://www.prototypejs.org/api/event. If you really want to do an onclick action inline (within the HTML), I'd recommend taking the CakePHP form input code—as seen in "this snippet":http://bin.cakephp.org/view/1820783667—and customize the radio element HTML code by removing the onclick attributes from those you don't want. Yes, you lose the CakePHP form helper goodness, but you also get the level of control you are looking for. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
