Home > showHide

showHide

ShowHide is a project mainly written in ..., it's free.

Super easy show/hide toggle

This plugin allows for toggling of content through one link

Demo

Dependencies:

  • jQuery

Usage:

$( selector ).showHide() // basic usage
$( '#your_input' ).autoSortSelect( {data: your_data} ); // minimal options

Options:

content: The selector for the content to show / hide. Defaults to the element id + _content
text_visible: Element text to show when the content is visible. Defaults to initial text.
text_hidden: Element text to show when the content is hidden. Defaults to initial text.
animate: Boolean to slide up/down or just show/hide the content. Defaults to false.

onHide: Function that runs after hide. Defaults to nothing.
onShow: Function that runs after show. Defaults to nothing.

Todo:

allow class default, not just id default, for content options