Friday, 25 October 2013

jquery Date picker control enable and disable call it on ready and add_endRequest function

    function datpickerenabledisable() {
        $("[id$=chkVendorProperties]").each(function () {
            $(this).click(function () {
                if (this.checked) {
                    $(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('enable');
                }
                else {
                    $(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('disable');
                }
            });
        });
    }

No comments:

Post a Comment