This example demonstrates basic usage (default options):
new DKS.CompactAccessibleForms('compactform');
This example enables input field class update (updateInputFieldClass option):
new DKS.CompactAccessibleForms($('compactformICU'), {updateInputClass:true});
This example enables input field class update but using custom class names for input fields (updateInputClass, visibleInputClassName and hiddenInputClassName options:
new DKS.CompactAccessibleForms('compactformICUC', {updateInputClass:true, visibleInputClassName:"compactVisibleCustom", hiddenInputClassName:"compactHiddenCustom"});
This example shows how you can process multiple forms with a single line of code by sending an array of container elements (most probably forms or fieldset elements):
new DKS.CompactAccessibleForms($$('.cforms'));
This form is initialized with the same call made to initialize the form in Example 4.a.
This example shows how the plug-in handles pre populated fields as well as the ability not to target a field (not compacted).