The name used for the generated checkboxes. For more information on how to use the plugin as part of a form validated and used using server side scripting, as for example PHP, see <ahref="#post">Bootstrap Multiselect and POST</a>. Related issues are discussed in the FAQ, in <ahref="https://github.com/davidstutz/bootstrap-multiselect/issues/323">#323</a>, in <ahref="https://github.com/davidstutz/bootstrap-multiselect/issues/331">331</a> and in <ahref="https://github.com/davidstutz/bootstrap-multiselect/pull/336">336</a>.
The name used for the generated checkboxes. See <ahref="#post">Server-Side Processing</a> for details.
</p>
</p>
<divclass="example">
<divclass="example">
...
@@ -1420,6 +1421,47 @@
...
@@ -1420,6 +1421,47 @@
});
});
});
});
</script>
</script>
</pre>
</div>
</td>
</tr>
<tr>
<td>
<code>selectAllName</code>
</td>
<td>
<p>
This option allows to control the name given to the select all option. See <ahref="#post">Server-Side Processing</a> for more details.
The below example uses a PHP script to demonstrate Server-Side Processing. Therefore, the below example will not run online - <b>download the repository and try it on a local server</b>.
</p>
<p>
In order to receive the correct data after submitting the form, the used <code>select</code> has to have an appropriate name. Note that an <code>[]</code> needs to be appended to the name when using the <code>multiple</code> option/attribute. Per default, the checkboxes used within the multiselect will not be submitted, however, this can be changed by adapting <code>checkboxName</code>. The select all option as well as the text input used for the filter will not be submitted. As this may be useful, the name of the select all checkbox may be adapted using the <code>selectAllName</code> option. The value of the select all checkbox can be controlled by the <code>selectAllValue</code> option while the values of the remaining checkboxes correspond to the values used by the <code>option</code>'s of the original <code>select</code>.