I have two selection list, which the second one populates depending at the selection of the first.

Code:
      <select id="category" onchange="getRegions('1',this.value,'region','imagediv1')" >
        <option selected="selected" value="" > Please Select Category</option>
         <?php
		 do {  
		  print ("<option value=\"".$row_Recordset1['id_categories_pk']."\"");
...