phpQueryEvents::add
Binds a handler to one or more events (like click) for each matched element.
Can also bind custom events.
Signature
public function add(DOMNode|phpQueryObject|string
$document,
$node,
unknown_type
$type,
unknown_type
$data,
[unknown_type
$callback = NULL] )
Parameters
$document
— object
$node
—$type
— object
$data
— object- Optional
$callback
— object
Line | Task |
---|---|
101+ | support '!' (exclusive) events |
101+ | support more than event in $type (space-separated) |
101+ | support binding to global events |