- Version: 0.1
- By: Shawn Drew - http://shawndrew.me
Handling a larger click area based on a child anchor href attribute
Minimal
$('selector').bigClick();
With options
$('.banner').bigClick({
addClass: 'big-click',
anchorSelector: 'a:last',
});
The plugin takes 2 options:
// Adds a class to element on success
addClass: 'big-click' (default: false)
// Will use provided selector for link source
anchorSelector: 'a:last' (default: a:first)