JQuery on() method

Posted by Sumeet Arora
6
Jul 30, 2015
160 Views

The on() method is used to attach one or more event handlers for the selected elements. It is designed to replace both the .bind() and .delegate() event handlers.

Syntax:

$(selector).on(event,childSelector,data,function,map)

where

PARAMETER

DESCRIPTION

Required/Optional

event

Can attach one or more events to the selected elements separated with spaces.

Required

childSelector

It determines that an event handler should attached to the specified child elements

Optional

data

For additional data

Optional

function

Specifies the function to run at the time when an event occurs

Required

map

Use to map one or more events to the selected elements and to run the function when events occur

Optional



To read full Article about JQuery on() method visit FindNerd.


FindNerd is not only about blogs, forums and tutorials, it has much more than this. Video blogging can be done using FindNerd. We have researched a lot before posting this feature and it had been noticed that many people are learning things by watching videos, instead of reading blogs. After finding positive results towards video blogging than reading blogs, we decided to launch a desktop Video Recording tool.
Comments
avatar
Please sign in to add comment.