jQuery DOM Actions
This plugin is mostly oriented to complex web applications. It allows you to a set of actions that you will handle and then easily apply them to elements turning them into buttons.
As a small example:
$('body').actions('say', function(msg){ alert(msg); });
We define an action "say" and provide a function that handles it. It expects one argument. Now anywhere on the html we can add the following to an element and when clicked, it will trigger this function.
<body> <div data-action="say/hi">Say Hi</div> </body>
I'm currently working on the documentation so check all the examples to see it in action. You can test them LIVE.
Any input is appreciated, create an issue and tell me what you think.