In my last post, I showed how to use jQuery datepicker(“option”, [option | callback]) in my viewscript to add on my datepicker, so the #start_date and #end_date can interactive with each other. Today I found a better way to do that, so that I do not have to include the javascript code in my viewscript. By using Zend_Json_Expr, I can insert my code into jQueryParams. Here is my updated form, and you can see how it works.
Datepicker
Zend Framework and jQuery Datepicker
I am pretty new to Zend Framework, and have been reading its reference for awhile. Today I was trying to work with Zend jQuery class and playing with datepicker. My task was trying to make two datepicker start_date and end_date, and so that after choosing the start_date, end_date will began from the selected start date (which will be using the demo code from the jQuery UI demo datepicker Event Search .