简体   繁体   中英

bootstrap-combobox.js v1.0.0 change value with js

I am using this combobox. but cant change the value with js.

 $("#teacher_relay_county_combo").val("Value....");
 $("#teacher_relay_county").val("3");

None of the above have any effect when if I include it in my js file. If I run the same command the chrome developer tool console the value is changed. So what can be the reason?

在我设置了值之后调用了这个。

$("#teacher_relay_county").data('combobox').refresh();

尝试:

$("#teacher_relay_county").combobox("refresh");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM