values in drop down list called via CActiveForm::dropDownList() is be populated by passing array of value => text as parameter.
eg, to select sex of a person, in the form view file:
<?php echo $form->dropDownList($form, 'sex', array('1' =&g… more »
Tags: input
yii: drop down list filter in CGridView
by default the filter for each data column is a text field. to display the field as drop down list, CDataColumn::filter property must be set as an array. for example, for user table there's column for sex represented by 1 = male and 2 = female. in the… more »
javascript: convert input text to upper or lower case
to convert to upper case, add onChange to <input> and call oUpperCase() function: <input type="text" onChange="javascript:this.value=this.value.toUpperCase();" /> to convert to lower case: <input type="text" onChange="javascript:this… more »