title: anoter ajax function for another form not working
body: <p>i have 2 form with different id (form_sign and form_login) and use ajax for submit it. form_sign working nice, but another form not working. </p>
  
  <p>i was try to show alert when the function for form_login if form was submit, and it's work, but when i add ajax code for transaction form, ajax code not running. i was inspect the code element, but the browser not displayed the error</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    checkSame('#_password');
    checkChar('#password');
  
    $("#form_sign").on('submit', function(e) { // form 1
      e.preventDefault();
      let post_url = $(this).attr("action"); //get form action url
      let request_method = $(this).attr("method"); //get form GET/POST method
      let form_data = $(this).serialize(); //Encode form elements for submission
  
      $.ajax({
        url: post_url,
        type: request_method,
        data: form_data,
        success: function(data) {
          if (data == "success") {
            reseter("#form_sign");
            $('#massage').html("Save data success! silahkan login");
            $("#divMassage").fadeOut(5000);
  
          }
        }
      })
    });
  
    $("#form_login").on('submit', function(ev) { //form 2
      ev.preventDefault();
      let post_url = $(this).attr("action"); //get form action url
      let request_method = $(this).attr("method"); //get form GET/POST method
      let form_data = $(this).serialize(); //Encode form elements for submission
      // i put alert here, the alert run
      $.ajax({
        url: post_url,
        type: request_method,
        data: form_data,
        success: function(data) {
  
          alert("eee"); // this alert not run
        }
      })
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;section class="content"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-5 col-md-offset-3"&gt;
        &lt;div class="nav-tabs-custom" style=" box-shadow: 10px 10px 5px 5px #888888;"&gt;
          &lt;ul class="nav nav-tabs"&gt;
            &lt;li class="active" id="link_1"&gt;&lt;a href="#tab_1" data-toggle="tab" aria-expanded="true"&gt;&lt;b&gt;Creat an Account&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li class="" id="link_2"&gt;&lt;a href="#tab_2" data-toggle="tab" aria-expanded="false"&gt;&lt;b&gt;Login&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;div class="tab-content"&gt;
            &lt;div class="tab-pane active" id="tab_1"&gt;
              &lt;form id="form_sign" role="form" action="&lt;?php echo $see?&gt;halaman/simaksi/creat-account.php" method="POST"&gt;
                &lt;div class="box-body"&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Username&lt;/label&gt;
                    &lt;input type="text" class="form-control" name="username" placeholder="Enter Username" required&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Email address&lt;/label&gt;
                    &lt;input type="email" class="form-control" name="email" placeholder="Enter email" required&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Password&lt;/label&gt;
                    &lt;input type="password" class="form-control" name="password" id="password" onkeyup="checkChar(this.id)" placeholder="Enter Magic Words" required&gt;
                    &lt;span id="mass1" class="text-red"&gt;&lt;/span&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Retype Password&lt;/label&gt;
                    &lt;input type="password" class="form-control" name="_password" id="_password" onkeyup="checkSame(this.id)" placeholder="Retype Magic Words" required&gt;
                    &lt;span id="mass2" class="text-red"&gt;&lt;/span&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;button type="submit" name="create" class="btn btn-lg btn-success btn-block" id="btn-submit" disabled&gt;Create&lt;/button&gt;
                    &lt;button type="reset" class="btn btn-lg btn-warning btn-block"&gt;Clear&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/form&gt;
            &lt;/div&gt;
            &lt;!-- /.tab-pane --&gt;
            &lt;div class="tab-pane" id="tab_2"&gt;
              &lt;form id="form_login" role="form" action="post" method="&lt;?php echo $see?&gt;halaman/simaksi/login-account.php"&gt;
                &lt;div class="box-body"&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Username&lt;/label&gt;
                    &lt;input type="text" class="form-control" name="user" placeholder="Enter Username" required&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="exampleInputEmail1"&gt;Password&lt;/label&gt;
                    &lt;input type="password" class="form-control" name="password" placeholder="Enter Magic Words" required&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group "&gt;
                    &lt;button type="submit" class="btn btn-lg btn-success btn-block" id="btn-login"&gt;Login&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/form&gt;
            &lt;/div&gt;
            &lt;!-- /.tab-pane --&gt;
          &lt;/div&gt;
          &lt;!-- /.tab-content --&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I hope that 2 different forms can work well even though they are on the same page</p>
  
  <p>sorry for my bad english 
  regards</p>