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] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to