2009-11-11 55 views

回答

1

如何:

if($(e.target).is('select')) { 
    $('option', e.target).each(function() { 
     /* "this" is the <option> element in here */ 
     // newoverlay(this) 
    }) 
} 

雖然我不知道你想與個人<option>元素做什麼。

+0

我需要輸出選項的文本內容。 – aoghq 2009-11-11 22:29:58

+0

也你如何區分select-single和select-multiple?我需要只隔離單個選擇下拉菜單。 – aoghq 2009-11-11 22:47:02

+0

@aoghq:使用'.text'屬性獲取'

相關問題