} //$(document).on("focusin","#oldpassword",function(){ // $(this).css("background-color", "#FFFFCC"); //}); //$(document).on("focusout", "#oldpassword", function () { // $(this).css("background-color", "#FFFFCC"); //}); //function myFunction() { // var username = $("#oldpassword").val(); // $.ajax({ // type: "POST", // url: "/Home/CheckOldPassword", // data: '{username: "' + username + '" }', // contentType: "application/json; charset=utf-8", // dataType: "json", // success: function (response) { // var message = $("#message"); // if (response) { // //Email available. // //message.css("color", "green"); // //message.html("Your Old Password Is Right"); // } // else { // //Email not available. // //message.css("color", "red"); // //message.html("Your Old Password Is Wrong"); // } // } // }); //};