Hi I have problem with cake and javascript i have code in cakephp like that
echo $this->Form->create('Order', array('action'=>'save')); echo $this->Form->input('User.name', array('label'=>'Imię')); echo $this->Form->input('User.surname', array('label'=>'Nazwisko' /*'value' => $res['User']['email']*/)); echo $this->Form->input('User.phone', array('label'=>'Nr telefonu')); echo $this->Form->input('User.email', array('label'=>'E-mail'/*'type'=>'hidden'*/)); echo $this->Form->input('departure_home', array('label'=>'Nr domu')); echo $this->Form->input('departure_street', array('label'=>'Ulica' /*'value' => $res['User']['email']*/)); echo $this->Form->input('departure_city', array('label'=>'Miejscowość')); echo $this->Form->input('departure_code', array('label'=>'Kod pocztowy'/*'type'=>'hidden'*/)); echo $this->Form->input('theDate2', array('label'=>'Dzień wylotu')); echo $this->Form->button('button', array('type'=>'button', 'onClick' => "displayCalendar(document.forms[0].data[Order][theDate2],'dd.mm.yyyy',this)")); echo $this->Form->end('Save'); and i need <input type="text" value="12.11.2011" readonly name="theDate2"> <input type="button" value="Cal" onclick="displayCalendar(document.forms[0].theDate2,'dd.mm.yyyy',this)"> but it doesn't work why?? -- Pozdrawiam Dominik Gajewski -- 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