gpt4 book ai didi

jquery-ui - JQuery 自动完成 : trigger

转载 作者:行者123 更新时间:2023-12-01 04:58:26 29 4
gpt4 key购买 nike

众所周知,javax.swing.JComboBox是一个下拉选项,具有 E其中的元素。设置.setEditable(true)时,我们现在可以做到 JComboBox还有一个JTextField其他E元素。

使用Google搜索后对此,它向我们返回了关于使用JQuery关于自动完成的建议here 。自动完成正在进行选择,但问题是,我们需要触发 onChange包含 ${remoteFunction} 的属性在 update 上呈现特定模板所述${remoteFunction}的属性.

<g:select  
id="itemSelectId"
onChange="${remoteFunction(
controller:'item', action:'itemSelect',
update:[success:'updateItemId'],
params:'\'id=\' + escape(this.value)'"/>
<div id="updateItemId></div>

关于<script>我们刚刚更改的链接上提供了 #combobox#itemSelectId .

最佳答案

看看select2 ,该库可能会提供您正在寻找的功能。

关于jquery-ui - JQuery 自动完成 : trigger <g:select onChange>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12487519/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com