jQuery FlexBox 如何设置默认值,
时间:2011-07-10
来源:互联网
JScript code
在编辑时怎么能把已保存的设置为默认值呢
var countries = {}; 3.countries.results = [{id:'AF',name:'Afghanistan'}]; 4.countries.total = countries.results.length; 5.$(function() { 6. //dp.SyntaxHighlighter.HighlightAll('code'); 7. // Do not autocomplete initial value, and handle non-existent values 8. $.post("${portal}/class/classAction_FlexBoxTeacherList.action", 9. {"param.class_id":1}, 10. function(tag){ 11. countries.results =eval("(" + tag + ")"); 12. countries.total = countries.results.length; 13. 14. $('#ffb8').flexbox(countries, { 15. autoCompleteFirstMatch: false, 16. noResultsText: '', 17. width:135, 18. onSelect: function() { 19. document.getElementById("class_teacher").value=$('input[name=ffb8]').val(); 20. } 21. }); 22. $('#ffb8_input').blur(function() { 23. document.getElementById("class_teacher").value=$('input[name=ffb8]').val(); 24. });
在编辑时怎么能把已保存的设置为默认值呢
作者: xwt799023 发布时间: 2011-07-10
Methods
setValue() is the only method, and allows you to set the display value of the input box after the FlexBox has loaded.
setValue() is the only method, and allows you to set the display value of the input box after the FlexBox has loaded.
作者: inetfuture 发布时间: 2011-07-10
楼上说的setValue()应该可以。
作者: lsw645645645 发布时间: 2011-07-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28