Weird html tags generated for HTML select element
My code:
<select ng-model="event-type" id="event-type" required>
<option value="Marriage" selected>Marriage</option>
<option value="Birthday">Birthday</option>
</select>
created under Firebug:
<select ng-model="event-type" id="event-type" required="" class="ng-pristine ng-invalid ng-invalid-required">
<option value="? undefined:undefined ?"></option>
<option value="Marriage" selected>Marriage</option>
<option value="Birthday">Birthday</option>
</select>
Can someone help me understand why this first line was generated? Because of this, my first item cannot be selected by default.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: