Tuesday, November 29, 2011

Re: Date picker for CakePHP 2.0.3

You also need the jquery library, and will probably need to actually
write some javascript. It's easy:

<script>
$(function() {
$("#datepicker").datepicker();
});
</script>

If you have done this, and are still getting errors, check your
javascript console to see what is going on.

On Nov 29, 9:35 am, Florin Trifu <florin.catalin.tr...@gmail.com>
wrote:
> I have tried this but it doesn't work for me.
>
> I have downloaded the jquery-ui, put the js inside /app/webroot/js,
> included inside my layout, and then create an input like this:
>
> $this->Form->input('expire', array('id'=>'datepicker'))
>
> Nothing happens when I click inside the text box...

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: