我正在使用filamentgroup jquery selectmenu(),我在动态构建selectlist的和selectlist已经构建的上调用它,但选项正在动态添加,例如:
第一个案例
$("presentselectlist").selectmenu(); //present selectlist initialized
$("presentselectlist").html("<option></option>.."); // addding options dynamically
$("presentselectlist").selectmenu(); // then reinitilaized, but not working this line
第二种情况
var newselectlist = $("<select ..."); // creating new selectlist dynamicallly
$(newselectlist).selectmenu(); // then initialized it by selectmenu but not working