How To Call Server Side Function?

I want to create a dropdownlist have value dependent by value of the button.

example when I click button 10 the listbox have 10 item show from db and when I click button 5 the listbox have 5 item show from db and the page isn’t reload.

how to do? use jquery or another?

Thank you.

Yeah. This is called "ajax request".

can you give me some use example? Thx.

This is what google replied when I entered "yii ajax example":

About 254,000 results

The information is out there. Why do you insist somebody should copy/paste something here ?