how to disable a datepicker by checking the text field disabled value

how to disable a datepicker by checking the text field disabled value

    jQuery(function() {

        $('input').filter('.datepick').datepicker({ 
        });
       
    });

<input type=="text" class="datepick" id="dateOfBirthFrom" disabled="true"/>
<input type=="text" class="datepick" id="dateOfBirthTo"/>


what i wan to do is when id="dateOfBirthFrom", will not pop up datepicker.