Cjuiautocomplete Textfield

Hey, how to dynamically change the source url of CJUIAutocomplete textfield.?

I have a radio button group, there are two choices student and teacher.

If user select student, cjuiautocomplete’s source url should be student controller’s action and same for teacher.

How to do this?

You can use javascript to set its source dynamically.