我的表单中有一个封装在span中的列表框,我想隐藏它,但我也希望生成这个列表框,因为我有一段javascript代码,它读取列表框中的选项并将值显示为字符串。
当我使用
<span style="display:none">listbox code </span>
我注意到我的js代码无法读取列表框的内容。我还在w3school display:none: the element will generate no box at all上阅读了以下内容。
有没有办法在生成列表框时隐藏跨度??
实际上,我希望列表框充当隐藏字段,并考虑使用display函数将
我希望能够从列表框中选择多个项目,并为SQL表中的每个项目创建记录。但我得到以下错误:
Uncaught TypeError: $(...).multiselect is not a function
at HTMLDocument.<anonymous> (EVENROL.aspx:334)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocume
如何在角JS列表框中设置项。这应该如列表框中所选择的那样显示。
<select multiple ="multiple" style="width:180px" ng-model="md_fruitpref" ng-options="fruit.Id as fruit.Name for fruit in Fruits"></select>
控制器
//Controller to set the items in Fruit
$scope.Fruits = [{
Id: 1,
Name:
我有一个完整的搜索面板,它的值是从DB.when a item in listbox selected中读取的,search is made.If the results is not found the results is not found。搜索面板是精简的(再多一个搜索面板),在压缩搜索中,我们可以更改搜索条件,在列表框中选择不同的项.after更改搜索条件,如果进行了搜索,当出现完整搜索面板时,完整搜索面板中列表框的值应该与压缩搜索面板中更改/选中的值相同。我们如何才能做到这一点。
简单地说,如果我有两个列表框,加载一个列表框,并将列表框的值设置为相同。一个列表框的另一个listbo
如何添加空列表框并将项目从一个列表框移动到另一个列表框,并首先使用EF代码将移动的数据保存到asp.net MVC中的数据库中,
In my Project I have create a list box which display the data from database code is like this
控制器中的:
public ActionResult Create()
{
IEnumerable<SelectListItem> items = db.IIDBS
.Select(c =>new SelectLi