In a view (add.ctp), I have.. ============================= <?php echo $form->create('Op', array('action'=>'add')); echo $form->input('id'); echo $form->input('date'); echo $form->input('firstName'); echo $form->input('lastName'); echo $form->input('proc', array('label'=>'Procedures'));
echo $form->end('Add Operation'); ?> <script type="application/javascript"> document.getElementById("OpFirstName").focus(); </script> ======================= I have checked the HTML source code in order to obtain the id that is assigned to the first name, but when the view opens, the cursor is nowhere to be found. How do I get the cursor to open at the first name textbox for input? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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