Example #3: a simple inline click handler
The handler-less version of .on() allows to create small event handlers very easily. In this example the span element is shifted right with each button click.
⇒Watch me moving!
Other examples with inline attached events
- Example #4: blinking a given number of times on click
- Example #9: generating password with fake progress
- Example #10: fading submenus with user friendly timeouts
- Example #12: cyclic button clicks
- Example #13: quick image selection
- Example #14: wait a timeout after each click before blinking
- Example #18: falling little boxes