Please ensure Javascript is enabled for purposes of website accessibility

$(document).ready(function() {$(“.nwxDate”).each(function() {$(this).datepicker({dateFormat:’M d yy’});});$(“.nwxDateTime”).each(function() {$(this).datetimepicker({dateFormat:’M d yy’, timeFormat: “HH:mm:ss”});});$(“#nwxForm”).submit(function(e) {var valid = true;$(“.nwxCheck”).each(function() {$(this).val($(this).is(“:checked”));});$(“.nwxMandatory”).each(function() {if (!$(this).val()){valid = false;alert($(this).attr(“title”)+” is mandatory”);e.preventDefault();return false;}});$(“.nwxNbr”).each(function() {if ($(this).val() && (isNaN($(this).val()) || $(this).val().indexOf(“.”) > -1)){valid = false;alert($(this).attr(“title”)+” should be a whole number”);e.preventDefault();return false;}});$(“.nwxCurr”).each(function() {if ($(this).val() && isNaN($(this).val())){valid = false;alert($(this).attr(“title”)+” should be a number”);e.preventDefault();return false;}});if (valid && $(“#nwxCaptcha”).length) {$(“#captchaValue”).val($(“#recaptcha_response_field”).val());$.ajax({type : “POST”,async : false,url : $(“#baseURL”).val() + “captcha/validate”,data : {token : $(“#captchaToken”).val(),challenge : $(“#recaptcha_challenge_field”).val(),response : $(“#recaptcha_response_field”).val()},success : function(response) {},error : function() {alert(“The captcha value entered is not correct, please try again”);e.preventDefault();return false;}});}});if ($(“#nwxCaptcha”).length) {$.ajax({type : “GET”,url : $(“#baseURL”).val() + “captcha/generate”,success : function(response) {$(“#captchaToken”).val(response);Recaptcha.create($(“#captchaKey”).val(), “nwxCaptcha”, {theme: “clean”,callback: Recaptcha.focus_response_field});}});}});

Copyright KR Boston.
All Rights Reserved.

Sign Up For Our Free Newsletter

Want more helpful information? Our pleasure. Click here to get our latest listings, real estate advice, & current lifestyle favorites straight to your inbox.

Address

231 Harvard Ave,
Suite 1 Allston, MA 02134

Phone: 617-250-7076
E : info@krboston.com

©2024 Powered by ZipperAgent   |   Agent Login   |   Privacy Policy |   DMCA