1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Text field updation on selction of drop down list

Discussion in 'JSP' started by amar4java, Mar 10, 2009.

  1. amar4java

    amar4java New 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.
  2. indiansword

    indiansword Security Expert

    friendly welcome, and lets wait for someone to answer it :)
  3. shabbir

    shabbir Administrator Staff Member

    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.

Share This Page