title: Form submit not working while using Ajax of jquery
body: <p>submit button (secondbutton) is not working if it comes from ajax page (Ajax.php) using jquery. In some browser it is working well. But, in some browser not working for example like some mobile browsers. plz help me to do.</p>
  
  <pre><code>      &lt;!DOCTYPE html&gt;       
              &lt;html lang="ta"&gt;
              &lt;head&gt;
              &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
              &lt;script&gt;
             $(document).ready(function(){
                  $("#MyRegister").on('submit', function(){
                if ($("#Button").val()=="FirstButton") {
                    $.ajax({
                      url: "Ajax.php",
                        method: "GET"
                     })
                  .done(function(response) {
                      $("#Opj").html(response);
                 });
                  return false;
                   }
                  return true;
               });
              &lt;/script&gt; 
            &lt;/head&gt;
              &lt;body&gt;
              &lt;form id="MyRegister" method="post" action="Target.php"&gt;    
              &lt;input id="MyName" type="text"&gt;
              &lt;div id="Opj"&gt;  &lt;input type="submit" id="Button" value="FirstButton"&gt;&lt;/div&gt;
              &lt;/form&gt;
              &lt;/body&gt;
              &lt;/html&gt;
  </code></pre>
  
  <p>Ajax.php</p>
  
  <pre><code>&lt;input type="submit" id="Button" value="SecondButton"&gt;
  </code></pre>