JAYbranding

HTML5 Default Click Input Field to Show Calendar

Desktop only

<hr>

Default Input Date Field - Click on icon

Normally, when using an HTML5 date input, you have to click on the icon to show the calendar popup. <input type="date">

Input Field - Click anywhere to show popup

<input type="date"> <style> input[type="date"].field-enhance::-webkit-calendar-picker-indicator { background: transparent; bottom: 0; color: transparent; cursor: pointer; height: auto; left: 0; position: absolute; right: 0; top: 0; width: auto; } </style> To show the calendar popup when clicking on the input field, use the CSS below: <pre data-lang="CSS"><code>.input-container input { border: none; box-sizing: border-box; outline: 0; padding: .75rem; position: relative; width: 100%; } input[type="date"]::-webkit-calendar-picker-indicator { background: transparent; bottom: 0; color: transparent; cursor: pointer; height: auto; left: 0; position: absolute; right: 0; top: 0; width: auto; }</code></pre>