if you want change html you can use update parameter from ajaxOptions array. And I think that if you want submit form you should use ajaxSubmitButton http://www.yiiframew…itButton-detail
Sorry, I updated my code since my first post and tried to use ajaxSubmitButton:
CHtml::ajaxSubmitButton('Save New Customer', array('user/create'), array('success'=>'newCustomerFormResult'), array('name'=>'submitUser'))
No change.
I did use the replace/update options at first, but I've decided to use a callback function on success instead. I need to do several things like replace a div with a message and refresh a dropdown list. Hence, the need for the 'newCustomerFormResult' callback function.