var servicedomain=”www.123contactform.com”; var frmRef=”; try { frmRef=window.top.location.href; } catch(err) {}; var cfJsHost = ((“https:” == document.location.protocol) ? “https://” : “http://”); document.write(unescape(“%3Cscript src='” + cfJsHost + servicedomain + “/includes/easyXDM.min.js’ type=’text/javascript’%3E%3C/script%3E”)); frmRef=encodeURIComponent(frmRef).replace(‘%26′,'[%ANDCHAR%]’); document.write(unescape(“%3Cscript src='” + cfJsHost + servicedomain + “/jsform-1574693.js?ref=”+frmRef+”‘ type=’text/javascript’%3E%3C/script%3E”));

Loading…

function postToGoogle() { var field1 = $("input[type='radio'][name='qs1']:checked").val(); var field2 = $('#feed').val(); $.ajax({ url: "https://docs.google.com/forms/d/e/1FAIpQLSdjOTKRb7YiWi8OGPq6M6CRL0TpuAsUKacKp2XgruMbIp4wzg/formResponse", data: { "entry.924752166": field1, "entry.997497831": field2 }, type: "POST", dataType: "xml", statusCode: { 0: function() { //Success message }, 200: function() { //Success Message } } }); } /* $(document).ready(function() { $('#form').submit(function() { postToGoogle(); return false; }); });*/