views:

677

answers:

1

I'm trying to combine some options of jQuery UI Datepicker

I'm using the code below:

$("#<%=tStartDate.ClientID %>").datepicker($.datepicker.regional['tr']);

I need to add option for max date which is:

{ maxDate: '+1m +1w' }

Can anybody tell hot to add this parameter?

+2  A: 

I think you want this:

 $.datepicker.setDefaults($.datepicker.regional['tr']);
 $("#<%=tStartDate.ClientID %>").datepicker( { maxDate: '+1m +1w' } );
tvanfosson
Yes exactly. Thanks
HasanGursoy