$('#passport_expiry').datepicker({dateFormat: 'mm/y'});
I have the above code works. I select a date using the datepicker and it updates the textfield. The problem is that when I try to select another date, it doesn't update the textfield. It seems that when the textfield already has a value, it doesn't update it.
EDIT:
What I can add is the actual form input:
<dd>
<label for="passport_expiry">Passport Expiry:</label>
<input type="text" id="passport_expiry" name="passport_expiry" maxlength="150" size="65" value=""/>
</dd>