Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use placeholder in <input type="time"/>

Tags:

html

Can I use placeholder in <input type="time"/>

like image 636
Manoj Kumar Avatar asked Apr 21 '14 06:04

Manoj Kumar


People also ask

How do you set place holder in input type date?

The placeholder attribute does not work with the input type Date, so place any value as a placeholder in the input type Date. You can use the onfocus=”(this. type='date') inside the input filed.

What is the input type for time?

Definition and Usage. The <input type="time"> defines a control for entering a time (no time zone). Tip: Always add the <label> tag for best accessibility practices!


1 Answers

Placeholder does not work with input type time however you can Prefilled data.

Just time:
<input type="time" value="13:00" step="900">
like image 178
Salman Aziz Avatar answered Oct 23 '22 01:10

Salman Aziz