My requirement is to display a date (calendar) icon next to the html5 date input field and clicking the icon will popup a date picker.
Current status for the html5 date input field:
Edge and firefox browsers does not have an date (calendar) icon.
IE11 has its own date icon.
Chrome has its own date arrow.
I try these codes.
https://jsfiddle.net/albertkao/307pw498/4/
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="form-group">
<input class="form-control" type="date" id="startdate" name="startdate" />
<label for="startdate"><span class="fa fa-calendar"><abbr title="Four digits year, dash, two digits month, dash, two digits day"></abbr></span></label>
</div>
Expected results:
All browsers display a date icon next to the html5 date input field.
Actual results:
Edge and firefox browsers display a date icon next to the html5 date input field (good).
IE11 display its own date icon, with my icon.
Chrome display its own date arrow, with my icon.
How to hide my icon in IE11 or Chrome browsers?