EasyUI Forum
May 15, 2024, 09:31:36 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: Textbox value  (Read 8112 times)
mazvv
Newbie
*
Posts: 20


View Profile WWW
« on: August 19, 2014, 10:00:28 AM »

Textbox value initializers only onblur therefore it's not possible submit through Return keyboard button
Logged

TravelCRM - opensource CRM for travel companies
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: August 19, 2014, 06:45:35 PM »

By default, the textbox value is changed when the inputing box loses focus. You can change this behavior by override the $.fn.textbox.defaults.inputEvents configuration.
Code:
<script type="text/javascript">
$.extend($.fn.textbox.defaults.inputEvents, {
keyup: function(e){
var t = $(e.data.target);
t.textbox('setValue', t.textbox('getText'));
}
});
</script>
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!