This class is designed to allow an easy way to inject segments of a form based on the state of a radio button, checkbox, or select element.
Simply wrap a section in a dom element and pass it to the class. There are two ways that the hidden subform can be revealed: it can be hidden on the page (using the class defined in options.hidden_class) or it can be retrieved via AJAX (the contents of the hidden subform will be posted through the AJAX call). Please see the example html for illustrations of both cases.
The activator is fired when the class is initialized, so you simply need to assign the value of the select/radio if you want to default to a setting.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus