title: e.preventDefault not preventing submit
body: <p>So on localhost I have no issues with the function at all, it works flawless but now I uploaded it to my host and it doesn't seem to work anymore. The form gets somewhat submitted and the URL gets all the info from the datastring in it. Please help me fix it.</p>
  
  <p>This gets added to the URL in the addressbar:</p>
  
  <blockquote>
    <p>?inlineRadioOptions=pre-set&amp;customname=&amp;customtype=&amp;Crime=&amp;DescriptionForm=&amp;inlineRadioOptions3=none&amp;Report=&amp;selected-text=1&amp;CordX=4675&amp;CordY=4558&amp;SubmitCrime=</p>
  </blockquote>
  
  <pre class="lang-js prettyprint-override"><code>$("#CrimeForm").submit(function(e) {
    e.preventDefault();
    if ($('#RadioCrime2').is(':checked')) {
      var Crime = $("#customname").val();
      var Type = $("#customtype").val();
    } else {
      var Crime = $("#select2").val();
      var Type = 'NONE';
    }
  
    if ($('#RadioDiv2').is(':checked')) {
      var UseDiv = 1;
    } else {
      var UseDiv = 0;
    }
  
    var value = $(this).find('select[name="DivisionSelect"]').val();
    var divss = (value ? value.join('') : '');
  
    var DescriptionForm = $("#DescriptionForm").val();
    var Report = $("#Report").val();
    var PinID = $("#selected-text").val();
    var CordX = $("#CordXNew").val();
    var CordY = $("#CordYNew").val();
    var UserID = &lt;?php echo $AccountID;?&gt;;
    var dataString = 'Crime=' + Crime + '&amp;Type=' + Type + '&amp;DescriptionForm=' + DescriptionForm + '&amp;PinID=' + PinID + '&amp;CordX=' + CordX + '&amp;CordY=' + CordY + '&amp;UserID=' + UserID + '&amp;DivSelect=' + UseDiv + '&amp;Divs=' + divss + '&amp;Report=' + Report;
    if (Crime == '' || Type == '' || DescriptionForm == '' || PinID == '' || CordX == '' || CordY == '') {
      document.getElementById("Alert-group").innerHTML = '&lt;div class="alert alert-danger" role="alert"&gt;You need to fill out everything!&lt;/div&gt;';
    } else {
      var n = DescriptionForm.length;
      if (n &gt; 500) {
        document.getElementById("Alert-group").innerHTML = '&lt;div class="alert alert-danger" role="alert"&gt;You have ' + n + ' characters in the description, limit them to 500!&lt;/div&gt;';
      } else {
        $.ajax({
          type: "POST",
          url: "SendInput.php",
          data: dataString,
          cache: false,
          success: function(result) {
            document.getElementById("Alert-group").innerHTML = '&lt;div class="alert alert-success" role="alert"&gt;' + result + '&lt;/div&gt;';
            $('#DescriptionForm').val('');
            $('#customname').val('');
            $('#Report').val('');
            $('#customtype').prop('selectedIndex', 0);
            $("#select2").val(null).trigger("change");
            document.getElementById("CustomCrime").style.display = "none";
            document.getElementById("DefaultCrime").style.display = "block";
            document.getElementById("RadioCrime").checked = true;
            document.getElementById("RadioDiv").checked = true;
            document.getElementById("ChooseDivision").style.display = "none";
            $("#DivisionSelect option:selected").prop("selected", false);
          }
        });
      }
    }
    return false;
  });
  </code></pre>