Thanks a ton for the tip - this worked out great!
The only thing I'd want to warn other people about (just in case
someone else is following these same footsteps) is that the text input
appeared to be a normal, everyday text input until I clicked on it,
whereupon the DatePicker control nicely
Hello!
I'm looking to use jQuery with Cake, specifically with a form. My
plan was to use a DatePicker (http://docs.jquery.com/UI/Datepicker)
control instead of the default datetime drop-down menus, but it looks
like the easy approach (give the datetime div an id that jQuery's
DatePicker
This one's pretty easy actually...Just set the input to be type text
and attach the datepicker to the id of the input (not the div):
?php
echo $form-input('field', array('type' = 'text'));
?
script type=text/javascript
$(function(){
$('#ModelField').datepicker();
});
/script
-Matt