Hi Everyone here at the Chronoforms forums,
You've probably seen this question lot's of times but I cannot find a solution to this problem.
I have a reservation From and it needs a from and to date, but the to date cannot be before the from date.
I have found this code on the forums but it doesn't show a datepicker, am I missing a Javascript library?
Anyways I have this in the form code:
And i have this at the form Javascript code:
It shows two fields but no datepicker whatsoever. Anyone have a solution?
Thanks alot!
You've probably seen this question lot's of times but I cannot find a solution to this problem.
I have a reservation From and it needs a from and to date, but the to date cannot be before the from date.
I have found this code on the forums but it doesn't show a datepicker, am I missing a Javascript library?
Anyways I have this in the form code:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Arrival</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="date_1" name="date_1" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Departure</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="date_2" name="date_2" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_2" type="submit" />
</div>
<div class="cfclear"> </div>
</div>
And i have this at the form Javascript code:
window.addEvent('domready', function() {
new Calendar({ date_1: 'd/m/Y', date_2: 'd/m/Y' },
{
direction: 1,
pad: 2,
classes: ['dashboard']
});
});
It shows two fields but no datepicker whatsoever. Anyone have a solution?
Thanks alot!