日期:2014-05-16 浏览次数:20374 次
<select name="drpPublisher" id="drpPublisher" >
<option value="0">--请选择--</option>
<option value="1">第一个</option>
<option value="2">第二个</option>
</select>
$(function() {
$('#drpPublisher').editableSelect(
{
bg_iframe: false,
onSelect: function(list_item) {
// 'this' is a reference to the instance of EditableSelect
// object, so you have full access to everything there
//alert('List item text: '+ list_item.val());
//$('#ddd').val(this.text.val());
alert('List item text: '+ list_item.text());
// 'this' is a reference to the instance of EditableSelect
// object, so you have full access to everything there
alert('Input value: '+ this.text.val());//取不到option 的value
},
case_sensitive: true, // If set to true, the user has to type in an exact
// match for the item to get highlighted
items_then_scroll: 10 // If there are more than 10 items, display a scrollbar
}
);
});