EasyUI Forum
September 13, 2025, 11:06:04 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: datebox: format on blur  (Read 7812 times)
korenanzo
Guest
« on: December 09, 2014, 03:43:50 AM »

Hi all,
using datebox, if you exit  from the field using tab or click instead of enter then the data entered won't be  formatted.

How to fix it? could I call the formatter into the onBlur? how?

Thanks,
Ric
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 09, 2014, 08:15:41 AM »

Call 'textbox' method to get the inputing box and you can bind any events on it.
Code:
var dt = $('#dt');
dt.datebox('textbox').bind('blur',function(){
var s = dt.textbox('getText');
dt.datebox('setValue', s);
});
Logged
korenanzo
Guest
« Reply #2 on: December 10, 2014, 01:21:59 AM »

thanks
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!