force user to input lowercase textbox CJuiAutoComplete


there must be a way to force user to input textbox only lowercase letters. I’m trying to apply a javascipt function “toLower()” that will make case conversion to users input.

$this->widget('zii.widgets.jui.CJuiAutoComplete', array(    






Any suggestions?

Hello, why would you convert user’s input in an autocomplete field? It’s the source data that matters, isn’t it?

If you are after doing it for any standard textfield, check here: or here: (you can adapt easily to jQuery of course:

By the way, the correct method is toLowerCase() in JavaScript, in case you have a typo there.