clickquery

1.0.0 • Public • Published

clickQuery

jQuery's click in 342 characters

Demo

Because why not?

Be warned, this is highly golfed and isn't nearly as robust as jQuery.click

Get array of objects

$(selector)

Example

$('p')
// Returns [<p>,<p>,...]

Attach click handler

$('p').click(function() {
  console.log('you clicked!');
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i clickquery

      Weekly Downloads

      6

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • ajkochanowicz