
-
You can use either forms you can see below to initialize the plug-in.
$("form").WEformElements(); //or var form = $("form").WEformElements();
-
.reinit(String): this function let you re-initialize the plug-in for two types: checkbox and/or radio. This works for example when dynamically you have to include more radio buttons o checkboxes into the form and has to have the same styles.
var form = $("form").WEformElements(); form.reinit("checkbox"); You can see this happening in the checkbox "NOT THE EXPLORER!" that you can see when the page loads.