Reputation: 32327
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
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