Perhaps use the jQuery object to deliver the elements to attach
February 13, 2008 - 9:17pm — binarybasher
| Project: | Call function on mouse click or Enter keypress |
| Version: | 1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Wouldn't it be a good idea to use the jQuery object to pass the desired elements for attaching the function?
Example
$('yourelement').clickOrEnter(yourFunction);
What do you think?
