Text field updation on selction of drop down list

amar4java's Avatar, Join Date: Mar 2009
Newbie Member
Hi everyone im new to this forum and this is myfirst post so excuse me for any mistakes

Im doing a final year project on banking i want help to move further

basically im designed a jsp webpage in which the form has a selecttio list or drop down list which is retrieved from a database table now i want to display a value from the same table in a text field in the form when i choose an option in the drop down list ,can anyone tell me how to do this in jsp.

thank u.
indiansword's Avatar, Join Date: Oct 2008
Security Expert
friendly welcome, and lets wait for someone to answer it
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Something like this

<script language="javascript" type="text/javascript" >
function my() 
	var var1;
// Use Var1 to be put into something else.
<form id="form1" runat="server">
	<input id="Text1" type="text" name="name_txt" value="1234567890"/>
	<input id="Button1" type="button" value="button" onclick="my()"/>
Use Var1 to be put into something else.