![]() |
Output Label instead of Value
Hi Everyone
The code that I am working on is here: http://www.payitforwardfriends.com/converter.html I'm trying to make it so that in the output when you convert from one substance to another it says what you are converting from (as in it says 1 cup of flour). The problem is "substance" is for the value, and not for the label. How do I make the label show up instead? Currently, it's coming up as [object HTMLSelectElement]. Thanks so much! |
Same way it is done for the other <select>s.
Look at them: Code:
var inunittext = inunit.options[inunit.selectedIndex].text;Code:
var substance = document.getElementById("substance");substanceAsText because you already have a variable named substanceText used for another purpose. |
That works. Thanks!
|
| All times are GMT +1. The time now is 12:08 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.