I am trying to make it so when you choose a item out of a drop down menu it prepopulates a text box with info about that selection. I cant get it to work. Any help or could point me to a tutorial?
Thanks Adam
[code=php] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Content-Script-Type" content="text/javascript"> <title>Sample</title> <script type="text/javascript"> <!-- function execute(selObj) { document.forms[0].field1.value = selObj.options[selObj.selectedIndex].value; } // --> </script> <div style="text-align: center;"> <strong>Sample</strong> </div> <form action=""> <p> <select name="selectList1" size="5" onChange="execute(this)"> <option value="1">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option> <option value="4">Option 4</option> <option value="5">Option 5</option> </select> <br> <input type="text" name="field1" disabled> </p> </form> [/code]
[i]Originally posted by adamthenewbie [/i] [B]actually can I make it a link?? [/B][/QUOTE]
Help @adamthenewbie spread the word by sharing this article on Twitter...