Forum closed. New forum available at

Call jquery update when focus left editor

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:

Call jquery update when focus left editor

Postby jmmonty on Tue Sep 29, 2009 8:45 am

Hi, I am new to jQuery and have a page that updates on blur of each input, textarea etc...

I have looked through the forum and tried without luck to call a function when focus leaves the editor, would anyone have any suggestions?


$("input").blur (function () {


Any help much appreciated and in the meantime I shall keep reading up on jQuery.

Posts: 1
Joined: Tue Sep 29, 2009 8:41 am

Re: Call jquery update when focus left editor

Postby mr_lundis on Tue Oct 27, 2009 11:30 pm

A rather dirty solution would be to listen to any events outside the editor iframe, to know when the user has left the editor. But this would also require that you know when the users enters the editor (i.e. listening to any events inside the iframe). If any event occurs inside the editor it'd get focus, and when any event occurs outside the editor it would lose focus (if it had focus to begin with).

Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest