How to Hide and Show the Buttton when Date picker is opened in jquery?
===

and its working Correctly when the date picker dialog is open i need to hide the button an when the dialog is closed i need to show the button.

This is my Datepicker code

    <input type="text" id="birthday" name="birthdate" class="date-picker" style="width:40%;height: 35px;font-size:15pt;border:4px solid orange" placeholder="MM/DD/YYYY" />
    $('.date-picker').datepicker( 
    	    {
    		      format:'m/d/Y',
    		      changeMonth: true,
    		      changeYear: true,
    		      yearRange:"1902",
    			  date: $('#inputDate').val(),
    			  current: $('#inputDate').val(),
    			  starts: 1,
    			  position: 'r',
    			  onBeforeShow: function(){
    				$('#inputDate').DatePickerSetDate($('#inputDate').val(), true);
    			 },
    			 onChange: function(formated, dates){
    				$('#inputDate').val(formated);
    				if ($('#closeOnSelect input').attr('checked')) {
    					$('#inputDate').DatePickerHide();
    				}
    			}
    	    });
    
    	});

here my Button



    <input type="Button"/>

i saw this link [http://stackoverflow.com/questions/2779896/check-if-datepicker-is-open][1]

in this i dont know what is filter_date?


  [1]: http://stackoverflow.com/questions/2779896/check-if-datepicker-is-open