Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DanielRivers/jQuery-Visibly

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-Visibly

A jQuery Plugin designed to easily show elements based on values of other elements

Documentation

Setup

$('[visibly]').Visibly();

Options

clearOnHide: false,  //Clear the data from the elements on hide
regularExpression: false, //This determines if regular expression is to be used for the test
attr: 'visibly', //Data attribute to use for the visibly data
vdelim: ',', //Delimeter used to split the values a control can hold
edelim: ':', //Delimeter between the field ID and the values
fdelim: ';' //Delimeter between the fields
rdelim: '%' //Delimeter between the rules

Examples

<div visibly="field1:a,b;field2:1"></div> 

The above rule will make the relevant element visible is the value of field1 is either 'a' or 'b' and field2 has value of '1'

Help

Full documentation can be found at: http://www.danielrivers.com/visibly

About

Plugin to easily show elements based on values of other elements

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.