-
Notifications
You must be signed in to change notification settings - Fork 0
chrisconley/sprightly-fields
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Usage: jQuery(document).ready(function ($) { $('#field_id').sprightlyFields({ "_value1_": '#value1Selector', "_value2_": '#value2Selector', "default": '#defaultSelector'}, {clearFields : true}); }); In the example below, the element that has id "satFields" will be shown when the field with id "test_score_name" has a value of "SAT". All other fields declared("#actFields" and "#otherFields") will be hidden. If the field value doesn't match "SAT" or "ACT" then the element "#otherFields" will be shown. jQuery(document).ready(function ($) { $('#test_score_name').sprightlyFields({ "SAT": '#satFields', "ACT": '#actFields', "default": '#otherFields'}, {clearFields : true}); });
About
jQuery Plugin for dynamically hiding and showing form fields
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published