开发者

jQuery; How to call a function inside widget?

开发者 https://www.devze.com 2023-02-08 17:42 出处:网络
I am using following jquery widget http://quasipartikel.at/multiselect/ I want to dynamically add options, by calling addOptions inside the following js.

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.开发者_Python百科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?


taken from: http://quasipartikel.at/multiselect_next/

.multiselect( 'option', optionName, [value] )

Get or set any dialog option. If no value is specified, will act as a getter.

0

精彩评论

暂无评论...
验证码 换一张
取 消