- Notifications
You must be signed in to change notification settings - Fork 2
hardsshah/jquery_clickable
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Latest commit | ||||
Repository files navigation
/* * jQuery Clickable Plugin * Copyright (c) 2008 Matt Curry * www.PseudoCoder.com * http://github.com/mcurry/jquery/tree/master/clickable * http://www.pseudocoder.com/archives/2008/10/21/clickable-box-with-jquery-part-2-the-plugin/ * * @author Matt Curry <[email protected]> * @license MIT * */ /* Description */ This is a small jQuery plugin that makes an entire element clickable based one of the links inside. /* Instructions */ Involk by calling the clickable function: $(".section").clickable(); With options: $(".section").clickable({link: "a:last", hover: function(){$(this).addClass("hover"); $(this).append('<div class="learn-more">Learn More</div>')}, unhover: function(){$(this).removeClass("hover"); $(".learn-more").remove()} }); /* Options */ Available options are: * link - the link inside the element that will be used when the element is clicked on. Defaults to "a:first" * hover - callback function when the element is hovered * unhover - callback function when the element is unhoverd
About
No description, website, or topics provided.
Resources
Uh oh!
There was an error while loading. Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published