Hi Steffan,
I think you're missing the colon in front of checkbox. Should be:
$(":checkbox:checked").length
or
$("input:checkbox:checked").length
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Nov 9, 2008, at 7:07 PM, Steffan A. Cline wrote:
Does anyone have a quick trick for getting a count of all checked
checkboxes? I tried $("checkbox:checked").length and I always get 0.
Is
there a trick for this?
Thanks
Steffan
---------------------------------------------------------------
T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[EMAIL PROTECTED] Phoenix, Az
http://www.ExecuChoice.net USA
AIM : SteffanC ICQ : 57234309
YAHOO : Steffan_Cline MSN : [EMAIL PROTECTED]
GOOGLE: Steffan.Cline Lasso Partner Alliance Member
---------------------------------------------------------------