开发者

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.开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜