I have a dropdown list in which i have names of student.

and i have some text box related to student.

I want that if i click on student name in dropdown then related data to the student come in the text box .

Any one can tell me how i can do that.

I think you can use ajax

i asking how ?

how i get the data from database actually i am new in yii and php also .

how i can search data using dropdown box.plz reply me more specific if possible provide example also.