Tag: bootstrap multiselect

当我从Angularjs中的响应绑定数据时,Bootstrap multiselect不起作用

当我从Angularjs中的响应绑定数据时,Bootstrap multiselect不起作用 angular.module(‘ngvalueSelect’, []) .controller(‘ExampleController’, [‘$scope’,’$http’, function($scope,$http) { $http.get(‘https://reqres.in/api/unknown’) .then(function (result) { console.log(result.data); $scope.exampleData = result.data; $scope.data = result.data; }) $scope.data = { availableOptions: [ {value: ‘001’, name: ‘Hello’}, {value: ‘002’, name: ‘integer’}, ] }; console.log( $scope.data ); }]); ngvalue select: {{option.value}}-{{option.name}} model = {{data.model | json}} ngvalue select: {{option.name}} model = {{data.model | json}} […]

Bootstrap multiselect下拉列表.val()不更新

我有3个下降,这是级联。 区域 – >区域 – >区域 我正在使用Bootstrap multiselect下拉菜单。 当我选择区域下拉时,各个区域将被绑定,同时新绑定区域的区域将被绑定到区域下拉。 这是我的下拉初始化代码。 $(‘#ddlZone’).multiselect({ enableClickableOptGroups: true, enableCollapsibleOptGroups: true, enableFiltering: true, includeSelectAllOption: true, nonSelectedText: ‘Select Zone’, enableCaseInsensitiveFiltering: true, selectAllNumber: true, onChange: function(option, checked,select) { FillRegionsDropdown(); FillTerritoriesDropdown(); } 这是上述function的代码。 function FillRegionsDropdown() { var Zone=$(‘#ddlZone’).val(); if(Zone != null) { Zone= Zone.join(“,”); $.ajax({ type: “POST”, contentType: “application/json; charset=utf-8”, url: “@Url.Action(“BindRegionsOnZonesAjax”, “GeoMap”)”, data: […]

bootstrap multiselect(刷新)无法正常工作

我正在使用bootstrap multiselect列表框。 当用户在多选时选择选项时,它会正确显示。 但是可以选择重置以前选择的选项。 当用户单击重置按钮时,自动style=display:none将添加到下拉按钮,下拉列表将变为不可见。 这是我的代码 $(“#button”).click(function () { $(‘option’, $(‘.multiselect’)).each(function (element) { $(this).removeAttr(‘selected’).prop(‘selected’, false); }); $(‘.multiselect’).multiselect(‘refresh’); });