Materialize select muliple "Check/Uncheck All" event

Viewed 7540

I have following markup

<select ng-model="sltStatus" id="sltStatusFilter" multiple class="right">
    <option value="0">View All</option>
    <option value="1">Study 1</option>
    <option value="2">Study 2</option>
    <option value="3">Study 3</option>
    <option value="4">Study 4</option>
</select>

And below is the JavaScript code

$('select').material_select();

Materialize use checkboxes for this.

fiddle

How can I have check/uncheck all functionality, I Googled a lot but din't find anything related.

5 Answers
Related