title: return false not working on click of submit button
body: <p>Same function is working on other page but here it calls the function ,show alert but still form get submiited and return false not working.....
  I am using view razor</p>
  
  <pre><code>@using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" }))
  </code></pre>
  
  <p>and here is my submit button</p>
  
  <pre><code>&lt;input type="submit" value="Submit" id="demo-submit-button"/&gt; 
  </code></pre>
  
  <p>Thanks so much</p>
  
  <pre><code>  $(function () {
          $('form').submit(function () {
              //alert($("input[type=radio]:checked").val());
              if ($("input[type=radio]:checked").val() == "True") {
                  //Logo Image
                  var selectedFile = $('#imgfile').val();
                  if (selectedFile == "") {
                      alert('please select valid image logo for marketplace');
                      return false;
                  } 
                  else {
                      var fileExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
                      if ($.inArray($('#imgfile').val().split('.').pop().toLowerCase(), fileExtension) == -1) {
                          alert("You are permited to select only '\n.jpeg','.jpg', '.png', '.gif', '.bmp' formats are allowed.");
                          return false;
                      }
                  }
  
                  //Screenshots
                  if ($('#ssimgfile').val() == "" || $('#ssimgfile1').val() == "" || $('#ssimgfile2').val() == "") {
                      alert('please select valid screenshots for marketplace');
                      return false;
                  }
                  else {
                      var fileExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
                      if ($.inArray($('#ssimgfile').val().split('.').pop().toLowerCase(), fileExtension) == -1 || $.inArray($('#ssimgfile1').val().split('.').pop().toLowerCase(), fileExtension) == -1 || $.inArray($('#ssimgfile2').val().split('.').pop().toLowerCase(), fileExtension) == -1) {
                          alert("You are permited to select only '\n.jpeg','.jpg', '.png', '.gif', '.bmp' formats are allowed.");
                          return false;
                      }
                      else {
                          return true;
                      }
                  }
              }
          });
      });
  </code></pre>