I have a simple form that uses the jQuery Tools Dateinput and the jQuery Validation Plugin. The problem is that the validation works in IE and FF but not Chrome or Safari.
HTML:
<form id="testform" method="post">
<label for="deliverydate">Select delivery date<span class="req">*</span></label>
<input type="text" class="date required" id="deliverydate" name="deliverydate" />
<input type="submit" value="submit" />
</form>
jQuery:
$(document).ready(function() {
$("input.date").dateinput({
format: 'dd / mm / yyyy',
trigger: true,
min: -1
});
$("input.date").change(function() {
alert($(this).val());
});
$("#testform").validate();
});
I have a jsFiddle link here with an example.
Any ideas what could be causing this? It's driving me crazy!!