Hello,

I looked at you pastie, copied your example reset,

I have in my view:

<?php echo $form->create(array('type' => 'post','action' => 'update')); ?>
      <fieldset>
        <p> Select from the options below</p>   
          <?php
                echo $form->input($model_table, array(
                                                'multiple'=>'checkbox',
                                                'label'=>false));
                ?>
 </fieldset>
      <?php 
          echo $form->submit();
          echo $form->button('Reset',array('type'=>'reset') );
          echo $form->end();
          ?>

But it does nothing.

I load the form via an ajax request but I cant see that having anything to
do with clearing the form...

Dave

 

-----Original Message-----
From: nini [mailto:[email protected]] 
Sent: June-04-09 11:17 AM
To: CakePHP
Subject: Re: form Clear


Worked for me just fine: http://pastie.org/500365

On 3 Jun., 21:22, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> Is there a helper for a button to clear a form?
>
> I have <?php echo $form->button('Reset', array('type' => 'reset' , 
> 'name' => 'Reset' , 'id' => 'button' , 'value' => 'Reset')); ?> which 
> creates the button but clicking it does nothing.
>
> Am i missing something?
>
> Dave


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