How to vary `<options>` in `<select>` elements in AngularJS Forms

Ask a question

I am working on something which requires to come up with different options for different selections as list in forms.

for example: If I select DR9 in System field, it has to show only 100,400,500 clients. same for QR9 - only 400 and 500.

But in my case, it’s showing(100,400,500,400,500) repetitively.

Here is my code.

<script src=""></script>
<!DOCTYPE html>
    <script src=""></script>

    <div ng-app="">
        Password Reset
        <select ng-model="myVar">
            <option value = "DR9">DR9</option>
            <option value = "QR9">QR9</option>
            <option value = "PR3">PR3</option>
            <div ng-switch="myVar">
                <div ng-switch-when="DR9">
                <div ng-switch-when="QR9">
Coin iconoffer bounty
add comment

0 Answer

Your Answer