I'm using radio button +  ajaxHelper::observeField() to change
display .

There are about 5 radio buttons. When I click one of them first time,
working fine then I click the other one, still working fine but when I
click again first one I clicked, I don't see any update. If I click
other radio button, they still work fine. The radio button works only
first time it clicked then stop working after that.

code are similar to this below:
============================================================================
<?php
for($i=1; $i<6; $i++){
?>
    <input type="radio" name="test" id="test<?=$i?>"   /> test<?=$i?>

     <?php
         $options = array('url'=>'/test/ajax_test',
                          'update'=>'ajax_test');
         echo $ajax->observeField('test' . $i, $options );
         ?>

<?php } ?>

<div id="ajax_test"></div>
============================================================================

I have similar code for drop down list and working fine but in this
specific page I prefer using radio button and not working as I
expected.
How can I make it work even I clicked them 2nd and 3rd time?


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

Reply via email to