Main Drop-down :
<select name="sometest">
<option value="1"> A </option>
<option value="2"> B </option>
<option value="3"> C </option>
<option value="4"> D </option>
<option value="5"> E </option>
</select>
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) .
Kindly note both table_1 and table_2 have same coloumn field name.
now after onchange of resp. value i get another drop-down listing with resp. table query.
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.
Drop-down list : on-change value for 1,2,3,4 from table_1
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 table_1
<select name="name">
<option value="n1"> Apple </option>
<option value="n2"> Boy </option>
<option value="n3"> Cat </option>
</select>
<select name="size">
<option value="12"> 0-1 </option>
<option value="21"> 1-1 </option>
</select>
<select name="title">
<option value="1"> whatever </option>
<option value="2"> same whatever </option>
</select>
similarly when Value 5 is select from Main Drop-down , then it query all column field from table_2 and list it under resp. drop-down