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.