php - 如何将标签与 ui-select 链接
问题描述
<div class="form-group">
<label for="fieldset" class="col-md-3>Collection</label>
<div class="col-md-7">
<ui-select name="fieldset" id="fieldset" ng-model="form.fieldset" theme="bootstrap" ng-disabled="disabled" ng-required="true">
<ui-select-match placeholder="Select Collection">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="collection.id as collection in collections | filter:$select.search">{{collection.name}}</ui-select-choices>
</ui-select>
</div>
</div>
单击标签时,ui-select 应该被激活,就像文本输入字段被突出显示一样。在这种情况下,在标签中使用 for 属性不起作用。点击标签时如何获得下拉菜单的焦点?
解决方案
推荐阅读
- python - Python中的验证性因子分析
- php - 在 PHP 中快速验证大量 URL 的列表?
- restheart - RestHeart-replicaset - 连接字符串包含无效选项 'readPreference=
- php - Laravel 缓存查询
- go - 如何在 Golang 中为字符串类型创建方法
- visual-studio-2012 - SSRS 中的饼图
- asp.net - 根据表ASP net SQL的页码从表中拆分选择行
- delphi - TStringGrid 的某些单元格上的百分比掩码
- c++ - 没有声明和初始化的类闭包函数(即没有`auto f = make_closure();`)
- r - R使用带有通配符的gsub删除部分字符串