Asked
Active
Viewed 961 times
0
-
1Coudn't you explain what do you mean in different words? – Konrad Apr 15 '22 at 10:58
-
what i want is when i click the click me button i need to get the calendar box to choose data , not to focus the dd/mm/yyyy box. – Muthu Apr 19 '22 at 04:48
-
https://stackoverflow.com/a/37596360/5089567 Maybe this answer will help, but it's kind of hacking. What is usually done on website is creating a custom calendar input. – Konrad Apr 19 '22 at 11:09
-
ok @KonradLinkowski i ll try – Muthu Apr 20 '22 at 05:39
1 Answers
1
const [date , setdate] = useState();
<input type="date" onChange={(e)=>{setdate(e.target.value);alert(date)} } />

Ingo Steinke
- 766
- 3
- 11
- 30

Youssef Belkhiraoui
- 26
- 2
-
1Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 19 '22 at 07:51