在 jSuites 的下拉列表中选择同上时如何触发函数?
我正在尝试使用jSuites创建下拉菜单,一旦选择了列表中的一个项目,该jSuites会发出功能。
不幸的是,我不知道如何启动该功能。我尝试使用“ on Change”作为< div>
的属性,并且在jdropdown的定义中尝试过,但似乎没有任何作用。
我在这里附上一个小提琴,其中包含使用该工作的下拉菜单,并且可以做应该做的事情,而两个jSuites菜单应该以相同的方式行为,但他们却没有……
我在做什么错?
这可以做到吗?
欢迎任何帮助...
I'm trying to create a dropdown menu with jSuites that fires a function once one of the items in the list is selected.
Unfortunately, I can't figure out how to fire the function. I tried with "onchange" both as attribute of the <div>
and within the definition fo the jdropdown, but nothing seems to work.
I attach a fiddle here with a dropdown menu made with that works and does what it should, and two jSuites menus that should behave in the same way but they don't...
What am I doing wrong?
Can this be done at all?
Any help is welcome...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请使用它:
您使用的是文字,而不是函数。
带有示例的文档: https://jsuites.net/v4/dropdown-and-autocomplete/事件
use that instead:
you used a literal, not a function.
Documentation with examples : https://jsuites.net/v4/dropdown-and-autocomplete/events