Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 752 Bytes

README.md

File metadata and controls

40 lines (24 loc) · 752 Bytes

conditional-visibility

Copyright (C) 2018, Eleven41 Software Inc.

Javascript library to set the visibility of HTML controls based on values of other controls.

Get It on NuGet!

Install-Package conditional-visibility

LICENSE

MIT License

Requirements

  • jQuery 2.0.0 or later

Supported Controls

The following types of controls can be used as visibility targets:

  • input (checkbox)
  • select

Example

<select id="Show1">
    <option value="true">Show</option>
    <option value="false">Hide</option>
</select>

<div data-visibility-target="Show1"
     data-visibility-value="true">
    This div is now showing because of the select.
</div>