Raghuram Banda <ra************@nokia.sify.net> writes:
Can any one help me, how to get the selected value from <Select> tag
using DOM
I tried with
document.getElementById("selectTagId").getAttribut e("value") it's
working fine with IE but not with NN I have checked it on NN 7.1
document.getElementById("selectTagId").value
works in modern browsers. For Nestscape 4 and other old browsers,
you must get the value from the selected option (works in newer
browsers too):
var sel = document.getElementById("selectTagId");
sel.options[sel.selectedIndex].value;
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'