ligerCombox 的用法

本文详细介绍了 ligerComboBox 组件的配置方法与使用技巧,包括必要的 JavaScript 和 CSS 文件引入方式,以及如何通过设置参数来实现下拉框的宽度、高度等属性。


ligerCombox 的用法:

导入包:

 <script src="<%=path%>/jquery/jquery-1.7.2.js" type="text/javascript"></script>
 <script src="<%=path%>/jquery/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
 <script src="<%=path%>/jquery/base.js" type="text/javascript"></script>
 <script src="<%=path%>/jquery/ligerTree.js" type="text/javascript"></script>
 <script src="<%=path%>/jquery/ligerTip.js" type="text/javascript"></script>
        <script src="<%=path%>/jquery/ligerResizable.js" type="text/javascript"></script>
        <script src="<%=path%>/jquery/ligerComboBox.js" type="text/javascript"></script>
        <script src="<%=path%>/jquery/ligerMenu.js" type="text/javascript"></script>
        <script src="<%=path%>/jquery/ligerDrag.js" type="text/javascript"></script>
        <link href="<%=path%>/css/ligerui-all.css" rel="stylesheet" type="text/css" />

<script  type="text/javascript">

$(function() {
            
             $("#knowledgeName").ligerComboBox({
                 width: 150,
                 height: 24,
                selectBoxWidth: 251,
                selectBoxHeight: 300,
                resize:false,
                split: ',',
                valueField: 'id',
                valueFieldID: 'typeIds',
                tree:{data: ${problemType}}
 });

</script>

               <input type="text" id="knowledgeName" name="knowledgeName" value=""/>
        <input   type="hidden" id="typeIds" name="typeIds" value=""/>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值