title: Onchange dropdown values query resp. tables - with php , mysql , ajax , jquery
body: <p><strong>Main Drop-down :</strong></p>
  
  <pre><code>&lt;select name="sometest"&gt;
    &lt;option value="1"&gt; A &lt;/option&gt;
    &lt;option value="2"&gt; B &lt;/option&gt;
    &lt;option value="3"&gt; C &lt;/option&gt;
    &lt;option value="4"&gt; D &lt;/option&gt;
    &lt;option value="5"&gt; E &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Now here When value 1 , 2, 3 , 4  is on-change it should get its details from table_1 and when Value 5 is on-change then its details come from another table_2 with field( name , size , title)  . </p>
  
  <p>Kindly note both table_1 and table_2 have same coloumn field name.</p>
  
  <p>now after onchange of resp. value i get  another drop-down listing with resp. table query.</p>
  
  <p>Suppose when i on-change for 1 or 2 or 3 or 4 value , then it query table_1 with field name, size, title and list it under resp drop-down sections.</p>
  
  <p><strong>Drop-down list : on-change value for 1,2,3,4 from table_1</strong>  </p>
  
  <p>Here : coloumn "name" all value  is listed under name , coloumn "size" all value is listed under size and coloumn "title" all value is listed under title from <strong>table_1</strong></p>
  
  <pre><code>&lt;select name="name"&gt;
    &lt;option value="n1"&gt; Apple &lt;/option&gt;
    &lt;option value="n2"&gt; Boy &lt;/option&gt;
    &lt;option value="n3"&gt; Cat &lt;/option&gt;
  &lt;/select&gt;
  
  &lt;select name="size"&gt;
    &lt;option value="12"&gt; 0-1 &lt;/option&gt;
    &lt;option value="21"&gt; 1-1 &lt;/option&gt;
  &lt;/select&gt;
  
  
  &lt;select name="title"&gt;
    &lt;option value="1"&gt; whatever &lt;/option&gt;
    &lt;option value="2"&gt; same whatever &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>similarly when <strong>Value 5</strong> is select from Main Drop-down , then it query all column field from <strong>table_2</strong> and list it under resp. drop-down </p>