Cyril Cherian
Cyril Cherian

Reputation: 32327

Cannot reset a select in material css

My HTML code is like this

<div class="input-field">
    <select ng-model="user.place">
      <option value="" disabled selected>Choose The Region</option>
      <option value={{value}} ng-repeat="value in region">{{value}}</option>
    </select>
</div>

I have tried to do user.place='' but this does not work! I am clueless on how to reset the select box.

Upvotes: 2

Views: 363

Answers (1)

Mars Robertson
Mars Robertson

Reputation: 13213

Is it the obvious thing?

<option value="" disabled selected>Choose The Region</option>

                               ^^^^^^^

disabled attribute would explain why you cannot select it.

Upvotes: 1

Related Questions