我有一个Yii2形式的列表框小部件,看起来像这样:
echo $form->field($model, 'filter')->listBox([
'odd' => 'Odd products',
'even' => 'Even products'
])
当用户点击其中一个单选按钮时,有没有办法提交表格?
echo $form->field($model, 'filter')->radioList([
'odd' => 'Odd products',
'even' => 'Even products'
])