EasyUI Forum
May 16, 2024, 02:19:33 AM *
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 submit and lost focus  (Read 6349 times)
romach
Newbie
*
Posts: 6


View Profile
« on: March 02, 2016, 01:34:19 AM »

I am using .form('submit') to sent data to server in background by timer. Current textbox input loses focus on .form('submit') when it is called by timer. Some investigation leads to $(target).find('.textbox-text:focus').blur(); row in jquery.form.js. Can I change this behavior without disable this row?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 02, 2016, 08:24:09 AM »

Try this code instead.
Code:
$(target).find('.textbox-text:focus').blur().focus();
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!