Results 1 to 3 of 3
Feb 11, 2009, 00:33 #1
I just wanted to know is there a way to achieve something like the in cakephp:
<input name="sugbox" onfocus="ClearForm();" type="text" id="sugbox" class="searchbox11" value="type name here" />
I am trying following:
<?php echo $form->input('Sugname.sugname', array( 'type' => 'text' , 'label' => '' , 'id' => 'sugname' ,'class' => 'searchbox11' ,'value' => 'type name here', 'onfocus'=> "ClearForm();" )); ?>
everything goes fine, but, m unable to call that function.
Plz suggest a solution for this.
Thanks in advance,
Feb 11, 2009, 01:59 #2
Feb 11, 2009, 02:23 #3
Its doable, n i've done this, the issue was that i was passing wrong id.