EasyUI Forum
April 17, 2024, 10:02:38 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: Form loosing Focus when Alert messenger appear  (Read 4800 times)
Rakesh
Newbie
*
Posts: 9


View Profile Email
« on: December 09, 2016, 03:20:10 AM »

Hello,

The cursor present in the form field disappears when an $.messager.alert appears.
How to get back the focus to the last input field ?

Please help me out as i am handling complex form with lots of input fields and the user cant use mouse often.


Thanks in advance
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: December 10, 2016, 05:38:13 AM »

You should remember the last inputing box when lose focus, and then set focus to it after close the alert dialog. Another way to solve this issue is to call $.messager.show instead of $.messager.alert.
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!