码迷,mamicode.com
首页 > 其他好文 > 详细

combobox select .change onSelect事件触发

时间:2015-11-29 22:47:44      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:

我现在要完成的功能是:
有两个下拉框,当地一个下拉框选择了第一个选项时,第二个下拉框不可用,否则就可用。
技术分享






技术分享



用了jQuery easyUI提供的onSelect方法。
如下:js文件:
$(‘#select1id‘).combobox({
                                url:"getClose.do",
                                editable:false,
                                panelWidth:130,
                                width:130,
                                onSelect:function(record){
                                        var peo = $(‘#closeBugChoose‘).combobox(‘getValue‘);
                                        
                                        if(peo=="1"){
                                                $(‘#select2id‘).combobox({
                                                        disabled:true
                                                });
                                        }
                                        else{
                                                $(‘#select2id‘).combobox({
                                                        disabled:false
                                                });
                                        }
                                }
                        });

这样就可以了。

combobox select .change onSelect事件触发

标签:

原文地址:http://www.cnblogs.com/wdcwy/p/5005669.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!