user334223 user334223 - 1 year ago 128
jQuery Question

show hide jquery datepicker calendar

For displaying jquery calendar with Month only I have used css as


But this CSS is applied to complete page and to other
controls have become
How do I restrict it to only one control.

<input data-val="true" id="StartMonth" name="StartMonth" type="text" value="" />
$('#StartMonth').focusin(function ()
$('.ui-datepicker-calendar').css("display", "none");
$('#StartMonth').datepicker('setDate', new Date(year, month, 1)).trigger('change');

Answer Source

With a little help of query u can achieve your desired result. Please follow the fiddle.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download