javascript 抓 select 選單的值
在抓取 select 選單值的時候,在 firefox 直接用 document.getElementById("選單id").value 就可以,可是在 IE 卻顯示不支援此物件,而必須用下面兩行才可以
var objmusical = document.getElementById("musical")
var musical = objmusical.options[objmusical.selectedIndex].text;
還好這種方式 Firefox 也支援
迴響
javascript 抓 select 選單的值 | 豬窩
Right here is the perfect website for anybody who really wants
to find out about this topic. You know so much its almost hard to argue with you (not that I really would want to…HaHa).
You definitely put a brand new spin on a subject
that's been discussed for ages. Excellent stuff,
just excellent!
javascript 抓 select 選單的值 | 豬窩
A fascinating discussion is definitely worth comment. I do believe that you should publish more about this issue, it may not be a
taboo matter but typically people don't talk about these issues.
To the next! Best wishes!!
javascript 抓 select 選單的值 | 豬窩
Write more, thats all I have to say. Literally, it seems as though you relied on the video to
make your point. You clearly know what youre talking about,
why waste your intelligence on just posting videos to your weblog when you could be giving us something informative to read?
javascript 抓 select 選單的值 | 豬窩
Wow, superb blog structure! How lengthy have you been blogging for?
you make running a blog glance easy. The overall look of your website is excellent, as well as the content!
javascript 抓 select 選單的值 | 豬窩
continuously i used to read smaller articles that also clear their motive,
and that is also happening with this piece of writing which I
am reading at this time.