EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Vilisag on December 20, 2014, 10:46:59 AM



Title: How to use onChange method of easyui textbox
Post by: Vilisag on December 20, 2014, 10:46:59 AM
Hi all,
  Please show me how to use onChange method of easyui textbox.
Thank for help.


Title: Re: How to use onChange method of easyui textbox
Post by: stworthy on December 20, 2014, 05:50:53 PM
The 'onChange' is an event of textbox not a method.
Code:
$('#tt').textbox({
  onChange: function(value){
    console.log('The value has been changed to ' + value);
  }
});


Title: Re: How to use onChange method of easyui textbox
Post by: Vilisag on December 21, 2014, 08:31:07 PM
Thanks stworthy