Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have fill data in combo box list, after i select combo box list fill text box.
for example in combo box i select city then fill location how can i do ? how can i wirte second query in where clause ?

combo box code
XML
<select name="cmbJob" id="SearchItem1" class="cmbJob" onChange=" document.getElementById('txtjob').value=this.value;   document.getElementById('JOB_NO').value=this.options[this.selectedIndex].text; document.getElementById('idValue').value=this.options[this.selectedIndex].value;">
              <option value="0" selected="selected">---Select JobNo---</option>
              <?php
                  include('dbconnection.php');
                  $sql=mysql_query("select distinct JOB_NO from mm_client_loc_job");
                   while($row=mysql_fetch_array($sql))
                    {

                    $id=$row['JOB_NO'];

                    $data=$row['JOB_NO'];

                    //echo '<option value=>'.$data.'</option>';
                     echo '<option value="'.$id.'">'.$data.'</option>';
                     }
              ?>
</select>
Posted
Updated 23-Dec-13 2:05am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900