:cry:
Hello i'm very confused...
I have two datepicker fields "anfahrt" and "abfahrt"
I need in the anfahrt field the date of tommorow and in the abfahrt field the date of tommorow + one day as default value.
I am using in in the start_date field of "anfahrt":
and load js in the setup:
Now i can see in the datepicker for abfahrt tommorow selected. but i need to see it in the form also
And i need the same f the start_date of abfahrt (tommorow + one day) and also as defualt value.
I read the faq and the form for hours now but it won't work - can somene help me?
š¢
Hello i'm very confused...
I have two datepicker fields "anfahrt" and "abfahrt"
I need in the anfahrt field the date of tommorow and in the abfahrt field the date of tommorow + one day as default value.
I am using in in the start_date field of "anfahrt":
<?php $d = new DateTime('tomorrow'); echo $d->format("d.m.Y"); ?>
and load js in the setup:
jQuery(document).ready(function($){
$("#abfahrt").data("start_date", '<?php $d = new DateTime('tomorrow'); echo $d->format("d.m.Y"); ?>');
});
Now i can see in the datepicker for abfahrt tommorow selected. but i need to see it in the form also
And i need the same f the start_date of abfahrt (tommorow + one day) and also as defualt value.
I read the faq and the form for hours now but it won't work - can somene help me?
š¢