Ms7 Search
Google 搜尋 翻譯
calendar
« 十一月 2024 »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
近期文章
文章分類
網站連結
Syndicate

« | »

javascript 抓 select 選單的值

2008-12-09 @ 12:27 in PHP, JavaScript, Sql

在抓取 select 選單值的時候,在 firefox 直接用 document.getElementById("選單id").value 就可以,可是在 IE 卻顯示不支援此物件,而必須用下面兩行才可以
  var objmusical = document.getElementById("musical")
  var musical = objmusical.options[objmusical.selectedIndex].text;

還好這種方式 Firefox 也支援

參考: http://www.dwww.cn/News/2007-7/20077301654175256.shtml

迴響

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!

作者 http://www.pasoconya.jp @ 20:15, 2020-06-26

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!!

作者 http://1pl.ru/user/PennyFregoso9 @ 05:38, 2020-06-27

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?

作者 cbd oil that works 2020 @ 16:17, 2020-06-27

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!

作者 cbd oil that works 2020 @ 00:21, 2020-06-28

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.

作者 cbd oil that works 2020 @ 10:10, 2020-06-28
發表迴響
 authimage