javascript 抓 select 選單的值
在抓取 select 選單值的時候,在 firefox 直接用 document.getElementById("選單id").value 就可以,可是在 IE 卻顯示不支援此物件,而必須用下面兩行才可以
var objmusical = document.getElementById("musical")
var musical = objmusical.options[objmusical.selectedIndex].text;
還好這種方式 Firefox 也支援
迴響
javascript 抓 select 選單的值 | 豬窩
I know this if off topic but I'm looking into starting my own weblog and was
wondering what all is needed to get set up?
I'm assuming having a blog like yours would cost a pretty penny?
I'm not very internet savvy so I'm not 100% certain. Any tips or advice would be greatly
appreciated. Many thanks
javascript 抓 select 選單的值 | 豬窩
After exploring a few of the blog articles on your
web page, I seriously appreciate your technique of blogging.
I book marked it to my bookmark webpage list and will be checking back soon. Please check out my web
site as well and tell me how you feel.
javascript 抓 select 選單的值 | 豬窩
This paragraph is genuinely a nice one it assists new internet visitors, who are wishing for blogging.
javascript 抓 select 選單的值 | 豬窩
I think everything composed was actually very reasonable. But,
what about this? what if you wrote a catchier title?
I am not suggesting your information is not good., but what
if you added something that grabbed people's attention? I mean javascript
抓 select 選單的值 | 豬窩 is a little plain.
You should glance at Yahoo's front page and note how they
create post titles to grab viewers to click. You
might add a related video or a pic or two to grab people interested
about everything've got to say. In my opinion, it might make
your posts a little bit more interesting.
javascript 抓 select 選單的值 | 豬窩
Fantastic items from you, man. I've be mindful your stuff previous to and you're just extremely magnificent.
I really like what you have obtained here, really like what you're stating and the best way
in which you assert it. You're making it enjoyable and you
still care for to stay it sensible. I can't wait to learn far more from you.
That is really a wonderful web site.