jQuery MiniUI

标题: combobox控件select方法bug [打印本页]

作者: kevinyau    时间: 2012-10-9 14:18:11     标题: combobox控件select方法bug

  1. <input id="testCombo" class="mini-combobox" style="width: 100px;" textfield="Text" valuefield="Value" required="true"  />
复制代码
  1.     var comboBox = mini.get('testCombo');
  2.      var data = [
  3.                  { Text: 'item0', Value: 'val0' },
  4.                  { Text: 'item1', Value: 'val1' },
  5.                  { Text: 'item2', Value: 'val2' },
  6.                  { Text: 'item3', Value: 'val3' }
  7.                ];
  8.      comboBox.setData(data);
  9.      comboBox.select(0);
  10.      mini.alert(comboBox.getText());
  11.      comboBox.select(1);
  12.      mini.alert(comboBox.getText());
  13.      comboBox.select(2);
  14.      mini.alert(comboBox.getText());
复制代码
调用select后不会清除以前的选择项

作者: niko    时间: 2012-10-10 09:42:03

已测试修复。
重新下载即可。




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2