Thanks everyone for helping me...
I found this and its working awesome
<p>
<b>It is simple, (asp:CheckBox) is rendered as a (span) with label and input field with type="check". So when you are trying to say $(".chkboxClass").removeAttr('checked'); you are actually calling the (span) tag and that is the reason it is not working. To make it works just add:
</b></p>
<script type="text/javascript">
$(document).ready(function () {
$('#selecctall').click(function (event) {
if (this.checked) {
$(".checkbox1 :input").attr("checked", "checked");
} else {
$(".checkbox1 :input").removeAttr('checked');
}
});
});
</script>