Ajax will update a textArea but not a textField

In a CActiveForm I’m using a dropdownmenu to update a textField with ajax, but it won’t update the display in the target field. If I change the field to a textArea though it’ll display the update fine.

I think it might be because in the textField a value=’’ is included in the html. Am I correct? Is there a way around this?

It is possible.

If you use a textarea, you can use:



If you use a textbox, you should try something like:



//not tested

Thanks for the pointer. The following worked: