Could ajaxLink update 2 div ?

I can use ajaxLink to send request to backend and update partial screen (only render a DIV tag). But could I update 2 different DIV at the same time? It means when I click an ajaxLink, I want to partial render different DIVs.

Yes, you need to specify the 'success' option in the $ajax parameter. Check jQuery manual on how to use 'success'.

Quote

Yes, you need to specify the 'success' option in the $ajax parameter. Check jQuery manual on how to use 'success'.

Thanks, do you mean this document ? http://docs.jquery.c…ry.ajax#options

But the def is "A function to be called if the request succeeds", is it correct?

That's right. You may also refer to how CHtml::ajax() is implemented regarding the 'update' and 'replace' options.