plodos Posted July 25, 2008 Share Posted July 25, 2008 <center> <form name="combowithtext"> <select name="example" size="1" onChange="showtext()"> <option value="AAA">AAA</option> <option value="BBB">BBB</option> <option value="CCC">CCC</option> </select> <input name="text" type="text" id="text" size="28"/> <script language="javascript"> <!-- var shortcut=document.combowithtext var descriptions=new Array() descriptions[0]="aaa" descriptions[1]="bbb" descriptions[2]="ccc" shortcut.text.value=descriptions[shortcut.example.selectedIndex] function showtext() { shortcut.text.value=descriptions[shortcut.example.selectedIndex] } //--> </script> </form> </center> There will be only bombobox in the form, input field must be hidden, but i didnt do it If the user select AAA from combobox, then input field will be visible with aaa text If the user select BBB from combobox, then input field will be visible with bbb text If the user select BBB from combobox, then input field will be visible with ccc text ------------------------------------------------------------------------------ I used disabled but I dont want that <input disabled name="text" type="text" id="text" size="28"/> I need visible/hidden inputField Pls help me... Quote Link to comment Share on other sites More sharing options...
secoxxx Posted July 26, 2008 Share Posted July 26, 2008 <input name="text" type="text" id="text" size="28" style="border-style: none; border-width: 0;"/> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.