I have a form on a web page where I would like to put the selected item in the drop-down list in the test panel. The code I have so far is as follows:
<form action = ""> <select name = "Cities"> <option value="----">--Select--</option> <option value="roma">Roma</option> <option value="torino">Torino</option> <option value="milan">Milan</option> </select> <br/> <br/> <input type="button" value="Test"> <input type="text" name="SelectedCity" value="" /> </form>
I think I need to use javascript .... but any help ?:-)
thanks
javascript dom html html-form html-select
mouthpiec
source share