Kiran Kumar Kiran Kumar - 10 days ago 6
jQuery Question

Masking for date textbox and should show Date Picker in GRID MM/DD/YYYY Format through JQUERY

Masking for date textbox and should show Date Picker in GRID MM/DD/YYYY Format through JQUERY.
Its working for Single TextBox but not for Multiple Text boxes in Grid.

Answer

Check Below Code for Masking and Show Date Picker in Grid :

 $(".date-picker").mask("99/99/9999");

        $('.date-picker').each(function (i, obj) {
            var date = obj.defaultValue;
            $(obj).removeClass('hasDatepicker').attr("id", "").datepicker();
            $(obj).datepicker('setDate', date);
        });

Hope This will help you !!