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

迴響

Good!!!

You save my code.thanks!!

作者 Programmer. @ 11:37, 2011-04-17

javascript 抓 select 選單的值 | 豬窩

Thanks for sharing your thoughts on g rsacwgxy.

Regards

作者 g https://tinyurl.com/rsacwgxy @ 15:49, 2020-06-22

javascript 抓 select 選單的值 | 豬窩

Cbd oil that works 2020
Hello to all, how is everything, I think every one is getting more from this site,
and your views are good for new viewers. best cbd oil for pain http://bit.ly/3drY6lE cbd oil
that works 2020 http://bit.ly/3drY6lE

作者 http://bit.ly/3drY6lE @ 22:31, 2020-06-24

javascript 抓 select 選單的值 | 豬窩

It's a pity you don't have a donate button! I'd most certainly donate to this fantastic blog!
I guess for now i'll settle for book-marking and adding your RSS
feed to my Google account. I look forward to fresh updates and will talk about this blog with my Facebook group.
Talk soon!

作者 motoalpinismo.it @ 11:01, 2020-06-26

javascript 抓 select 選單的值 | 豬窩

I like the helpful information you provide in your articles.
I will bookmark your blog and check again here frequently.
I'm quite certain I'll learn many new stuff right here!

Best of luck for the next!

作者 tinyurl.com @ 20:00, 2020-06-26
發表迴響
 authimage