Hi guys. I have a problem.
Code:
Code:
<form id="studentform" name="studentform" method="post" action="studentcreation.jsp">
<td align="right">Id no</td>
<td>
<select style="width:200px" name="idno" id="idno">
<option></option>
</select>
</td>
</tr>
<tr>
<td align="right">Student Name</td>
<td><input name="studentname" type="text" id="studentname" size="29"></td>
what i want to happen is in the dropdown, i have codes there that shows all the idno in my database. so when i click the idno, the corresponding student name will appear in the studentname textfield. can someone help me on how to do it? i think javascript onClick will be used here. any thoughts? thank you.