I have tried probably over around 10 different Javascript and JQuery scripts for this and haven't been able to get one to work. This is my current script:
Here's the JQuery import...
Here's the function...
And here's the HTML...
It makes all of the check boxes but when you click the select all, it doesn't do a thing to the other boxes.
Here's the JQuery import...
Code
<html>
<head><script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script></head></html>Here's the function...
Code
<script>
function toggleChecked(status) {
$("#checkboxes input").each( function() {
$(this).attr("checked",status);
})</script>And here's the HTML...
Code
<input type="checkbox" onclick="toggleChecked(this.checked)"> Select / Deselect All
<div id="checkboxes">
<input type="checkbox" class="checkbox" />
<input type="checkbox" class="checkbox" />
<input type="checkbox" class="checkbox" />
</div>It makes all of the check boxes but when you click the select all, it doesn't do a thing to the other boxes.

