I am new to JavaScript. This request seems simple enough but cant seem to get it to work.
I want to select from a drop down menu and return the value in the HTML. As I have it now, it returns the value in a text box, but I want it to write it without using a text box, just simply return it in the <p></p>.
Here you go:
You have to use
innerHTMLto set the HTML of#favoriteto the browser selected.Working example: http://jsfiddle.net/Ppk5k/6/
Update
To get the value and text:
If you selected Google Chrome it will output:
And for the example: http://jsfiddle.net/Ppk5k/13/