function checkThisDayOnly() {
    var checkBox = $("#ThisDayOnlyCheckBox")[0];
    if (checkBox.checked) {
        if ($("#StartDateTextBox").val() == "") {
            return 'The start date cannot be empty.';
        }
    }
    return null;
}
// Checks if the From & To dates are the same if This day only is selected.
Checks if the From & To dates are the same if This day only is selected.
Checks if the From & To dates are the same if This day only is selected .
function checkThisDayOnly() {
    var checkBox = $("#ThisDayOnlyCheckBox")[0];
    if (checkBox.checked) {
        if ($("#StartDateTextBox").val() == "") {
            return 'The start date cannot be empty.';
        }
    }
    return null;
}
function checkThisDayOnly ( ) { var checkBox = $ ( "#ThisDayOnlyCheckBox" ) [ 0 ] ; if ( checkBox . checked ) { if ( $ ( "#StartDateTextBox" ) . val ( ) == "" ) { return 'The start date cannot be empty.' ; } } return null ; }
Checks if the From & To dates are the same if This day only is selected.
Checks if the From & To dates are the same if This day only is selected .