views:

26

answers:

3

When the "Select All" check box is used, it also sends that check box and it's value to the server. How do I remove or omit it from the node list before sending it to the server using jQuery?

Thank You.

+3  A: 

The simplest way would be to not give it a name :)

<input type="checkbox" />
WoLpH
+2  A: 

You're looking for the remove function:

$('#someId').remove();

However, it will not do anything if the user has Javascript disabled.

I highly recommend that you change the server-side code to ignore that checkbox.

SLaks
+2  A: 

Try this:

$(".checkbox :not[id=chkcheckAll]").each(function(){//what needs to be done});

Assuming the id for Check all checkbox is chkCheckAll.

HTH

Raja