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?
taken from: http://quasipartikel.at/multiselect_next/
Get or set any dialog option. If no value is specified, will act as a getter.