default select option as blank
Maybe this will be helpful
<select>
<option disabled selected value> -- select an option -- </option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
How to set selected value as empty for dropdownlist via jquery
$("#mySelect option[value='']").attr('selected', true)
Angular select option shows blank when assigned from array
<form #form="ngForm" (ngSubmit)="sendEmail()" class="tooltip-center-bottom">
<div class="form-group">
<select id="emailTem" class="form-control" name="email" [(ngModel)]="emailTem">
<option value="" disabled selected>Select Email Template</option>
<option *ngFor="let obj of emailArray" [value]="obj">{{obj}}</option>
</select>
</div>
<button class="btn btn-primary status-button" type="submit">Submit</button>
</form>
Related Topics
Mongodb Get Data to Display in HTML
Change Specific Button Text on Click Inside Ngfor
Formdata Created from an Existing Form Seems Empty When I Log It
How to Get the Index from a Json Object With Value
Best Way to Show a Loading Spinner/Gif While My React Component Is Fetching Via Ajax
How to Format Numbers in Vuejs
Reactjs - Multiple If Conditions Inside Map Function
Access a Variable Outside of .Then Function
How to Highlight Parts of an Imagemap on Mouseover
How to Redirect Url After Login Successful Via Ajax Call in PHP
Avoid a Link to Reload the Page in JavaScript
Save Only Date Without Timezone JavaScript
How to Change the Image(Slider) One by One Every 3 Seconds in JavaScript
Handle Browser Close in JavaScript
How to Close an Open Collapsed Navbar When Clicking Outside of the Navbar Element in Bootstrap 3