I want to customize the display of the input date date picker.

Asked 2 months ago, Updated 2 months ago, 4 views

I want to erase "delete" in the lower left corner, but I don't know how to do it.
Also, I don't know how to display holidays in red letters on the calendar.

Enter a description of the image here

html css

2022-09-30 12:08

1 Answers

Unfortunately, you can hardly customize it, including the one in the <input type="date"> question.

input type="date"

HTMLStandard 4.10.5.1.7 Date state(type=date)
Please check the link for reference if possible.

It's an HTML standard in itself, and there's no restriction that it should be like this as a calendar or input UI, and it's developed in each browser, and it doesn't have a complete UI.Also, unfortunately, it is impossible to change the appearance and layout.

Therefore, it is common to deploy a Javascript library to assist with entering dates.
dates. There are many things called "datepicker" in the world.
例えばFor example, Datepciker|jQueryUI
The library date entry is often customizable and often possible.
Find a library that meets your requirements.


2022-09-30 12:08

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.