// Submit $(".contact form").css("opacity", 1); $(".contact input").prop("readonly", false); $(".contact .submit").prop("disabled", false); $( "#msgbox" ) .addClass("ui-state-error") .attr("title", "Unable to send") .html("
Please check all required fields
Please copy the antispam code into the field on its right
") .dialog({ height: 240, modal: true, close: function () { $(".contact form .error input").first().focus(); } });