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 選單的值 | 豬窩

Hi, I think your website might be having browser compatibility
issues. When I look at your blog site in Opera, it looks fine but when opening in Internet Explorer,
it has some overlapping. I just wanted to give you
a quick heads up! Other then that, fantastic blog!

作者 cbd oil that works 2020 @ 12:09, 2020-06-29

javascript 抓 select 選單的值 | 豬窩

It's difficult to find educated people in this particular subject,
but you seem like you know what you're talking about! Thanks

作者 web hosting providers @ 12:21, 2020-07-18

javascript 抓 select 選單的值 | 豬窩

Thank you for the good writeup. It if truth be told was
once a amusement account it. Glance complicated to far delivered
agreeable from you! By the way, how could we keep up a correspondence?

作者 web hosting service @ 06:11, 2020-07-22

javascript 抓 select 選單的值 | 豬窩

Thanks for finally writing about >javascript 抓 select 選單的值 | 豬窩

作者 best website hosting @ 04:42, 2020-07-27

javascript 抓 select 選單的值 | 豬窩

Hi outstanding blog! Does running a blog similar to this take a great deal of work?

I've very little expertise in programming however I had
been hoping to start my own blog in the near future.
Anyways, if you have any recommendations or techniques for
new blog owners please share. I understand this is off topic nevertheless I just
had to ask. Thank you!

作者 cheap flights uk @ 18:33, 2020-07-27
發表迴響
 authimage