diff --git a/BlogEngine/BlogEngine.NET/Scripts/contact.js b/BlogEngine/BlogEngine.NET/Scripts/contact.js index 03634fc92..b8b00eb62 100644 --- a/BlogEngine/BlogEngine.NET/Scripts/contact.js +++ b/BlogEngine/BlogEngine.NET/Scripts/contact.js @@ -37,8 +37,8 @@ function endSendMessage(arg, context) { else { if ($("#spnCaptchaIncorrect")) $("#spnCaptchaIncorrect").css("display", "none"); - $('[data-id="btnSend').attr("disabled", ""); - var form = $('[data-id="divForm'); + $('[data-id="btnSend"]').attr("disabled", ""); + var form = $('[data-id="divForm"]'); var thanks = $('#thanks'); form.css("display", "none"); @@ -56,4 +56,4 @@ function onSendError(err, context) { } $('[data-id="btnSend"]').css("display", "none"); alert("Sorry, but the following occurred while attemping to send your message: " + err); -} \ No newline at end of file +}