|
DataForm中的各種欄位讀取值與設定值方法都不一樣,如下: |
|
|
類型 | 取值 | 給值 | TextBox | $(target).val(); | $(target).val(value); | TextArea | $(target).val(); | $(target).val(value); | Combobox | $(target).combobox('getValue'); | $(target).combobox('setValue',value); | Refval | $(target).refval('getValue'); | $(target).refval('setValue',value); | Optons | $(target).selectoptions('getValue'); | $(target).selectoptions('setValue',value); | Numberbox | $(target).val(); | $(target).val(value); | Datebox | $(target).datebox('getValue'); | $(target).datebox('setValue',value); | Datetimebox | $(target).datebox('getValue'); | $(target).datebox('setValue',value); | Timebox | $(target).timebox('getValue'); | $(target).timebox('setValue',value); | Switch | $(target).switch('getValue'); | $(target).switch('setValue',value); | Slider | $(target).slider('getValue'); | $(target).slider('setValue',value); | DateSelect | $(target).dateselect('getValue'); | $(target). dateselect ('setValue',value); |
|
|
|