0
他のドロップダウンの選択に基づいてマルチ選択ドロップダウンディレクティブを無効にしたいとします。 これはこれは、マルチドロップダウン選択であるドロップダウン値に基づいてディレクティブを無効にする
<div class="col-md-2 col-sm-2">
<label for="labelState">State</label>
<select id="zone" class="form-control btn btn-default"
ng-disabled="!states"
ng-model="currentState"
ng-options="state as state for state in states"></select>
</div>
ダウン第一のドロップです。
`<div class="col-md-2 col-sm-2">
<div ng-controller="AppCtrl">
<label for="ratingState">State</label>
<div ng-dropdown-multiselect=""
ng-disabled="currentState === 'Select State'"
options="example14data"
selected-model="example14model"
checkboxes="true"
extra-settings="example14settings">
</div>
</div>
</div>`
私はそれが正常に動作しているが、同じことがマルチディレクティブをドロップダウン選択で作業されていない選択ドロップダウン第一に基づいて、簡単なボタンを無効にしてみてください。 angularjs-dropdown-multiselectで
<input type="button"
ng-disabled="currentState === 'Select State'"
class="btn btn-primary btn-md" />
これはうまくいきませんでした。 –
本当ですか?ここでは働くことがあります:https://jsfiddle.net/jtassin/8gue5e1p/2/ –
私は何が仕事ですが、私のために働いていない同じコードがわからない.. –