Commit d887a6b5 authored by David Stutz's avatar David Stutz

#347.

parent f1704292
...@@ -2327,10 +2327,22 @@ $('#example2').multiselect({ ...@@ -2327,10 +2327,22 @@ $('#example2').multiselect({
<p> <p>
A related issue is discussed <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/205" target="_blank">here</a> and includes a possible solution when using CSS to hide the checkboxes: A related issue is discussed <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/205" target="_blank">here</a> and includes a possible solution when using CSS to hide the checkboxes:
</p> </p>
<pre> <pre class="prettyprint linenums">
.multiselect-container input { .multiselect-container input {
display: none display: none
} }
</pre>
<p>
<b>How to use Bootstrap Multiselect using <code>$.validate</code>?</b>
</p>
<p>
This topic is discussed in issue <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/347">#347</a>. The fix suggested is as follows:
</p>
<pre class="prettyprint linenums">
var $form = $("#myForm");
var validator = $form.data('validator');
validator.settings.ignore = ':hidden:not(".multiselect")';
</pre> </pre>
</div> </div>
......
...@@ -2405,10 +2405,22 @@ $('#example2').multiselect({ ...@@ -2405,10 +2405,22 @@ $('#example2').multiselect({
<p> <p>
A related issue is discussed <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/205" target="_blank">here</a> and includes a possible solution when using CSS to hide the checkboxes: A related issue is discussed <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/205" target="_blank">here</a> and includes a possible solution when using CSS to hide the checkboxes:
</p> </p>
<pre> <pre class="prettyprint linenums">
.multiselect-container input { .multiselect-container input {
display: none display: none
} }
</pre>
<p>
<b>How to use Bootstrap Multiselect using <code>$.validate</code>?</b>
</p>
<p>
This topic is discussed in issue <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/347">#347</a>. The fix suggested is as follows:
</p>
<pre class="prettyprint linenums">
var $form = $("#myForm");
var validator = $form.data('validator');
validator.settings.ignore = ':hidden:not(".multiselect")';
</pre> </pre>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment