Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Introduction
Webconcept

Description

The focusout event occurs when an element loses focus.

The .focusout() method specifies a function to run when a focusout event occurs on any child element of the selected element.

Unlike the blur() method, the focusout() method triggers if any child element loses focus.


v1.4

This method has the form:

.focusout(function)
Parameter Description
function (optional) Specifies the function to run when the focusout event occurs

Return Value

This form returns a jQuery object.


v1.4.3

This method has the alternate form:

.focusout(data,function)
Parameter Description
data (optional) Specifies additional data to pass along to the function
function (optional) Specifies the function to run when the focusout event occurs

Return Value

This form returns a jQuery object.

Examples

Change background color of an input field when the div element (or any child elements of it) loses focus:

$("div").focusout(function(){
  $("this").css("background-color","#FFFFFF");
});