填充bootstrap可编辑类型'select'动态下拉列表 [英] Fill bootstrap editable type 'select' as dropdown dynamically
问题描述
目前在我的网站填写页面加载的bootstrap可编辑下拉列表
var statusList = [];
set statusList ='获取数据'
$('#UserStatusID')。editable({
type:'select',
url:'../ Handler。 ashx',
标题:'选择状态',
来源:statusList
});
.. ...下一个下拉菜单等
我在按钮的点击事件上使用上面的填充代码,实际上是正常执行的行。没有错误,但下拉源没有改变。
如何做到这一点
Currently in my website filling bootstrap editable dropdown on page load
var statusList =[];
set statusList = 'getting data'
$('#UserStatusID').editable({
type: 'select',
url: '../Handler.ashx',
title: 'Select Status',
source: statusList
});
..... next dropdown etc
I used above filling code on click event of the button , actually lines normally executed . no error but dropdown source not changed.
How can do this
推荐答案
('#UserStatusID' ).editable({
类型:'选择',
url:'../ Handler.ashx',
标题:'选择状态',
来源:statusList
});
.....下一个下拉菜单等
我在按钮的单击事件上使用上面的填充代码,实际上是正常执行的行。没有错误,但下拉源没有改变。
怎么做
('#UserStatusID').editable({
type: 'select',
url: '../Handler.ashx',
title: 'Select Status',
source: statusList
});
..... next dropdown etc
I used above filling code on click event of the button , actually lines normally executed . no error but dropdown source not changed.
How can do this
这篇关于填充bootstrap可编辑类型'select'动态下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!