Prepopulating textArea field

I have a form that has a textArea input

 echo $form->textArea($model,'message',array('rows'=>6, 'cols'=>50));

I have been trying to prepopulate the textArea. For a Invite message.

Now the array takes the HTML attributes, and ‘value’=>‘DEFAULT TEXT’ doesn’t work. Though value is supposed to work in a normal javascript way. Is there any way we can prepoulate contents inside the <textarea> </textarea> HTML tag.

Thanks.

try this

$model->message = ‘DEFAULT TEXT’;

echo $form->textArea($model,‘message’,array(‘rows’=>6, ‘cols’=>50));

I was looking for the same thing :)

Thanks for the help!

thanx it really help to me