title: Submit automatically a form with Jquery onchange event
body: <p>I try to submit my form automatically when I change an input field but nothing happens but I can just display a message using "alert(message)",can you help me please!!!</p>
  
  <p>My code :</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  
   &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
     &lt;head&gt;
         &lt;script type="text/javascript" src="script/jquery-1.8.3.min.js"&gt;&lt;/script&gt;
     &lt;/head&gt;
    &lt;body&gt;
         &lt;form method="POST" id="form" action=""&gt;
             &lt;fieldset&gt;
                Text 1 : &lt;input id="text1" type="text" name="text1" value="" /&gt;
                &lt;input id="submit" type="submit" name='submit' value="Send"/&gt;
             &lt;/fieldset&gt;
          &lt;/form&gt;
  
          &lt;script&gt;
  
               $('#form input[name=text1]').change(function(){
               $('#form').click();
               //alert("Changed!");// This works
                });
         &lt;/script&gt;
  
   &lt;/body&gt;
  
   &lt;/html&gt; 
   &lt;?php
     if (isset($_POST['submit'])){
      echo $_POST['text1'];
     }
    ?&gt;
  </code></pre>