Hi Thomas,
you could compare the count of all available checkboxes
with all checked once.
That would look something like this:
$("form#form1").submit(function() {
var total = $("#form1 [EMAIL PROTECTED]'checkbox']").size()
var checked = $("#form1 [EMAIL PROTECTED]'checkbox']:checked").size()
if(checked == total)
$("#all").show(500);
return false;
});
I'm not too sure about the expression @type='checkbox', but i guess
you get my point.
Hope this works for you
Lukas
Am 18.09.2008 um 09:44 schrieb tlob:
Hello I sucessfully implemented a test to see if all checkboxes are
checked:
$("form#form1").submit(function() {
var anzahl = $("#form1 input:checked").length;
if (anzahl=="7"){$("#all").show(500);}
return false;
});
I think this can be done more elegant, because when the number of
checkboxes change, I have to change my code. Not sexy....
Thanks in advance
Thomas