Explaination
I am successfully using an ‘input type=date‘ as a datepicker in bootstrap 5.3, to select the date for data viewing.
The problem that i have is: i have to click on it to be visible.
For my situation, it has to be always visible, like a javascript calendar.
Question
How can this be achieved?
Is there any better alternative with a more attractive UI that does the same job?
The code
<form id="Create" method="post" asp-page-handler="CreateDate" >
<input class="btn btn-secondary " type="date" name='newdate' onchange='this.form.submit()' >
2
Answers
use below cdn links
Use the below function to call date input
As the built-in HTML
input type="date"
doesn’t support always being visible. You can integrate the Bootstrap Datepicker and make it always visible.