title: ajax function on change dropdown Value
body: <p>Hie Everyone!
  In PHP page1 my code is here..</p>
  
  <pre><code>    &lt;html&gt;
      .
      ...
      &lt;select id="customer"&gt;...&lt;/select&gt;
      ..
      ....
      &lt;div id="show"&gt;&lt;/div&gt;
      //and Java script function (ajax call)
     &lt;script&gt;
     $('#customer').change(function(){
          var Id = $(this).val();
      $.ajax({
          type: "GET",
          url: "page2.php",
          data: "ID="+id,
          success: function( data ) {
              document.getElementById("show").innerHTML = data;
          }
      });
      });
      &lt;/script&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>In php page2 as code..</p>
  
  <pre><code>&lt;?php
  $ID=$_GET['ID'];
  ...
  //db connection code
  ..
  $sql="select * from Table1 where id='$ID'";
  //result code..
  //while loop..
  //echo something..
  // all working without error..
  ?&gt;
  </code></pre>
  
  <p>So, when I was trying to do this.It does not showing the success data or may be Ajax function not work.I had check with alert(data);
  but does not Alert anything.
  please help.</p>