onChange事件:
$('#select_percent').combobox({
onChange:function(newValue,oldValue){
alert(newValue);
load(newValue);
}
});
getValue方法:
$("#select_percent").combobox("getValue");
例子:
<body>
<h1>Form test by </h1>
<div class="easyui-pagination" style="background:#efefef;border:1px solid #ccc;" data-options="
total:439,
buttons:[{
iconCls:'icon-add',
handler:function(){
alert('add');
}
},
{
iconCls:'icon-cut',
handler:function(){
alert('cut');
}} ,{
iconCls:'icon-save',
handler:function(){
alert('save');
}
}],
onSelectPage:function(num,page){
$(this).pagination('loading');
alert('num:'+num+'page:'+page);
$(this).pagination('loaded');
}
">
</div>
</body>
效果图:
转自:http://hi.baidu.com/tomte/item/5f5aaa874d25fccdef083dd1