javascript 抓 select 選單的值
在抓取 select 選單值的時候,在 firefox 直接用 document.getElementById("選單id").value 就可以,可是在 IE 卻顯示不支援此物件,而必須用下面兩行才可以
var objmusical = document.getElementById("musical")
var musical = objmusical.options[objmusical.selectedIndex].text;
還好這種方式 Firefox 也支援
迴響
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!
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
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?
javascript 抓 select 選單的值 | 豬窩
Thanks for finally writing about >javascript 抓 select 選單的值 | 豬窩
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!