EasyUI Forum
September 14, 2025, 02:00:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to call parent method  (Read 8019 times)
ems2811
Newbie
*
Posts: 10


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
}
});
Logged
ems2811
Newbie
*
Posts: 10


View Profile
« Reply #2 on: March 29, 2015, 11:33:17 AM »

Works. Thanks a lot
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!