UPDATE
Unfortunately I have caused some confusion by talking about the .value
property, but then asking for any reference to feature support in browsers.
In hindsight, I guess the thing I needed right now was to know whether .value
is "safe" to use, and therefore that is why I accepted @BeatAlex's answer (as they put the effort in to actually test on multiple browser.
ORIGINAL QUESTION
Using javascript, the accepted way to get/set the value of the selected <option>
in a <select>
is using the .value
property.
For years and years I have not used the .value
property, as I was told that "old browsers" don't support it. Instead I use the long form of...
dd.options[dd.selectedIndex].value;
But I've just done some research, and I cannot find any reference to which "old browsers" this effects. For instance this quirksmode article even mentions "old browsers" but doesn't give any more information than that.
Which "old browsers" do not have the .value
property on the <select>
element? Is there a reference somewhere to exactly when particular features became available in mainstream browsers?
Note: unfortunately jQuery is not currently available to me, due to an old 3rd party component being used on the system