﻿$(document).ready(function() {
    $("a[id*='cmdLogin'").click(function() {
        var isValid = true;
        $("#tblLogin input[type!='submit']").each(function() {
            if (this.value.length == 0) {
                isValid = false;
                $(this).css("border", "solid 1px red");
                $("span[id*='lblError']").text("Incorrect Email Address Or Password");
            }
            else {
                $(this).css("border", "none");
                $("span[id*='lblError']").text("");
            }
        });
        return isValid;
    });
});
