ajax code in php
    <table width="260" id="tab" cellpadding="1" cellspacing="10">

		<tr>
			<td width="20px"> AccessionNo </td>

			<td width="400px">

				<select name="bkid" onChange="load_bkissue(this.value)" class="txtbox">
			<option value="">Select </option>

						<?php

                        foreach($issue as $row)

                          {

                        ?>

                        <option value="<?php echo $row->accession_id;?>"><?php echo $row->accession_id;?></option>

                        <?php

                          }

                          ?>
						</select>			</td>
		</tr>
		<tr>
			<td> Title </td>

			<td><input name="txtbnam" id="txtbnam" type="text"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Author </td>

			<td><input name="txauth" id="txauth" type="text" id="txauth" class="txtbox"></td>

		</tr>

		<tr>
			<td> Category </td>

			<td><input name="txtcat" id="txtcat" type="text" id="txtcat"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Subject </td>

			<td><input name="txtsub" id="txtsub" type="text" id="txtsub"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Rack </td>

			<td><input name="txtrack" id="txtrack" type="text" id="txtrack" class="txtbox"></td>

		</tr>

                <tr>
			<td style="font-family:Georgia;white-space:nowrap;"> Library Card No</td>

			<td><input name="libcrd" type="text" id="libcrd" class="txtbox"></td>

		</tr>
<tr> <td>

    <input  type="submit" value="Issue Book" id="bt" class="button">

  </td>

</tr>

</table>

when selecting the accession No from the select box i need to get title,subject,rack etc in each textbox using ajax.How can i?


ajax code in php
===

    <table width="260" id="tab" cellpadding="1" cellspacing="10">

		<tr>
			<td width="20px"> AccessionNo </td>

			<td width="400px">

				<select name="bkid" onChange="load_bkissue(this.value)" class="txtbox">
			<option value="">Select </option>

						<?php

                        foreach($issue as $row)

                          {

                        ?>

                        <option value="<?php echo $row->accession_id;?>"><?php echo $row->accession_id;?></option>

                        <?php

                          }

                          ?>
						</select>			</td>
		</tr>
		<tr>
			<td> Title </td>

			<td><input name="txtbnam" id="txtbnam" type="text"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Author </td>

			<td><input name="txauth" id="txauth" type="text" id="txauth" class="txtbox"></td>

		</tr>

		<tr>
			<td> Category </td>

			<td><input name="txtcat" id="txtcat" type="text" id="txtcat"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Subject </td>

			<td><input name="txtsub" id="txtsub" type="text" id="txtsub"  class="txtbox"></td>

		</tr>

		<tr>
			<td> Rack </td>

			<td><input name="txtrack" id="txtrack" type="text" id="txtrack" class="txtbox"></td>

		</tr>

                <tr>
			<td style="font-family:Georgia;white-space:nowrap;"> Library Card No</td>

			<td><input name="libcrd" type="text" id="libcrd" class="txtbox"></td>

		</tr>
<tr> <td>

    <input  type="submit" value="Issue Book" id="bt" class="button">

  </td>

</tr>

</table>

when selecting the accession No from the select box i need to get title,subject,rack etc in each textbox using ajax.How can i?

