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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -