$(document).ready(function () { $('#submitErrorReport').click(function () { bootbox.prompt({ title: "Please enter any additional information that could help us", inputType: 'textarea', callback: function (result) { if (result) { errorMsg = $("#errorMsg").html(); $.ajax({ type: "POST", url: submitErrorReportURL, data: AddAntiForgeryToken({ Message: result, Exception: errorMsg, CurrentUrl: window.location.href }), success: function (response) { if (response.result) { $("#top_msg").css('display', 'inline', 'important'); $("#top_msg").html( '