create a larger clickable area
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
jquery.bigclick.js

README.md

bigclick - create a larger clickable area

Description

Handling a larger click area based on a child anchor href attribute

Usage

Minimal

$('selector').bigClick();

With options

$('.banner').bigClick({
    addClass: 'big-click',
    anchorSelector: 'a:last',
});

Options

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)