<script type="text/javascript">
$(document).ready(function () {
$(".chkSelectAll").click(function () {
var aa = $(this).attr("checked");
if (aa) {
$(".checkbox-style-vertical").attr("checked", "checked");
}
else
$(".checkbox-style-vertical").removeAttr("checked");
});
});
</script>
in the above jquery code i suppose that your select all check box has css class applied and its name is
.chkSelectAll
(please replace that class name with your original css class name)
i have used class name selector of jquery to select your all check boxes using
".checkbox-style-vertical"
this class name, and also use
attr
method to set attribute to checked all the check boxes and
removeattr
to remove all the check boxes