Hello All, I am using ajax helper to check, at the time of registration the entered username is already exist in database or not.
For that I have used <?php echo $form->text('User.login_name', array('class' => 'users', 'id' => 'login_name')); ?> $options = array('url' => 'update_select', 'update' =>'valid_username'); echo $ajax->observeField('login_name',$options); ?> This is working properly and showing me error message "Username already exist" in valid_username div but I need, at the same time the login_name text box should be clear and got focus in that. Does anyone have some idea? -Manisha. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---