Sorry about that, I should have specified I was using Prototype ... force of habit.
$(UserUsername).getValue(); and $F(UserUsername); will also both work with Prototype. - Ed On Fri, Apr 16, 2010 at 9:32 AM, Hani Sana <[email protected]> wrote: > Hey All You may making a mistake plz use it > before it include > <?php e($javascript->link('prototype-1.6.1', false)); ?> > <?php echo $form->input('username'); ?> > which out here > <input name="data[formname][username]" type="text" > onchange="autoDisplay()" value="" id="FormnameUsername" /> > function validate() > { > alert(Form.Element.getValue('id')); > } > > Note in place of id should take id of that element. > alert(Form.Element.getValue('FormnameUsername')); > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
