2
I own two camps:
<input type="date" id="data_inicial" value="<?php echo date("Y-m-d"); ?>" disabled>
<input type="date" id="data_final">
The first field, I have the initial date filled and set as disabled. The second field, I have the open date.
Note: I am only using HTML5 type date, I am not using any type of validator.
How do I make the second field always BIGGER than the first? Is there a rule I can add to the field to search for the date from the start date only?
This would be correct, however, we can add +1 on the date, so that it is the next day, and not the same day. But I see no need... Your answer was exact to what I need.
– Sr. André Baill
@Andersoncarloswoss, how would I make the current date +1? To leave for the next day? Can you add in your reply? Thank you.
– Sr. André Baill
@Andrébaill made.
– Woss
About the disabled, that’s right, because I treat it differently when I get the post :) More to more, that’s right Anderson, grateful.
– Sr. André Baill
Already tested on all browsers?
– user60252
No, but HTML 5 support is already well consolidated. I don’t think there should be any more serious problems with this. Link Can I Use.
– Woss
I have IE11, Edge 14, Firefox 54, and it doesn’t work. Are my browsers bugged? Yours do work?
– user60252
here only Chrome and Opera
– user60252
I tried this, but it doesn’t work. Even assigning via js, the field is not filled with the date of the day.
– Marcelo Gomes