EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ems2811 on March 28, 2015, 12:09:02 PM



Title: How to call parent method
Post by: ems2811 on March 28, 2015, 12:09:02 PM
Hello. Sorry for my English . I decided to manually open the drop-down list , and has done so for this :
$('#cc').combo('options').delay=604800000;
$('#cc').combobox('options').selectOnNavigation=false;
$('#cc').combobox('textbox').bind('keyup',function(e){
   if(e.keyCode==40)
      //how to call there $('#cc').combobox('showPanel') thru the "this"
});
Thanks


Title: Re: How to call parent method
Post by: stworthy on March 29, 2015, 07:46:16 AM
Please try this:
Code:
$('#cc').combobox('textbox').bind('keyup',function(e){
if (e.keyCode == 40){
var t = $(this).parent().prev();
t.combobox('showPanel');
}
});


Title: Re: How to call parent method
Post by: ems2811 on March 29, 2015, 11:33:17 AM
Works. Thanks a lot