Q:

JQuery DatePicker constrainInput: true not working like I think it should

It is only allowing numbers in the box  if you type "22" you cannot type a space or any characthers.
How do I fix this
<SCRIPT>
    $(function() {
        $( "#dateExpire" ).datepicker({ 
        constrainInput: true,
        changeYear:true, 
        altField: 'input#dateExpire', 
        altFormat: 'dd M yy',
        minDate: new Date(2011, 8,9</cfoutput>)
        });
    });
</SCRIPT>

A:

You fix it by applying the format you want to the dateFormat option:
dateFormat: 'dd M yy'

constrainInput: http://jqueryui.com/demos/datepicker/#option-constrainInput

When true entry in the input field is constrained to those characters allowed by the current dateFormat.

dateFormat: http://jqueryui.com/demos/datepicker/#option-dateFormat

