php - Cakephp input prompt text -
i have following input field in form:
echo $this->form->input('website_name');
now want display prompt text when user starts type disapears
i have tried following:
echo $this->form->input('website_name'),array('namespace'=>'hello world'); echo $this->form->input('website_name'),array('title'=>'hello world'); echo $this->form->input('website_name'),array('placeholder' =>'hello world');
but no luck. know how prompt text on these text fields?
you can use placeholder
instead of name , title.
echo $this->form->input('website_name',array('placeholder'=>'hello world'));
Comments
Post a Comment