jQuery; How to call a function inside widget?
I am using following jquery widget http://quasipartikel.at/multiselect/
I want to dynamically add options, by calling addOptions inside the following js. https://github.com/michael/multiselect/blob/next/js/ui.multiselect.js
So I tried
<script type="text/javascript">
function launchExtraOption(){
var selectValues = new Object();
selectValues['Abcd'] = 'Abcd';
$("#countries").multiselect(function(){
addOptions(selectValues);
});
}
</script>
But I dont seem to be getting it to work. Can somebody help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
taken from: http://quasipartikel.at/multiselect_next/
Get or set any dialog option. If no value is specified, will act as a getter.