.toggle() Event

Syntax

.toggle()

Description

The .toggle() event triggers or binds two or more event handler of an specified element in alternate clicks. The below example shows you clearly how to change the style of the specified element using .toggle() mouse event.

Example Code

Result:

Welecome to Hscripts.com





Ask Questions

Ask Question