Open In App

Web technologies Questions | jQuery Quiz | Set-1 | Question 4

Which of the below method is used to binds a handler of one or more events in jQuery?

(A)



attach(type, [data], fn )

(B)



catch(type, [data], fn )

(C)

bind( type, [data], fn )

(D)

All of the above

Answer: (C)
Explanation:

The method used to bind one or more events. It takes three parameters types, data, and fn. type is used for taking one or more events separated by some spaces. Data is an optional parameter and fn is responsible for binding the set of matched elements. The syntax is bind(type,[data], fn).It also binds the custom events.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :