bootstrap搜索下拉数据回显

多选模式

 $("#parcel_categorys").selectpicker('val', [1,2]);

单选模式

$('#select_country').selectpicker('val', 1);

点击事件的时候携带对象进入方法

onclick="display_channel(' + JSON.stringify(c).replace(/"/g, '"')

你可能感兴趣的:(js,bootstrap)