Namespace: on

just.on(elements, eventNames, listener, optionsopt) → {Array.<Element>}

Add an event listener to multiple elements.
Source:
core.js, line 1300

Parameters:

Name Type Default Description
elements
string or Element[] The targets.
eventNames
string or string[] The event types.
listener
function The handler for the event.
options
[optional]
object or boolean false Options for addEventListener
Returns:
elements
Type
Element[]