I don't know about finishing in 0.0 secs but there is an attrs()
method in the moreSelectors plugin that returns an array of attribute
values from all matched elements.

Eg: $("input:checkbox:checked").attrs("id") will return an array
[id1,id2,id3 etc]

It can also accept a second parameter if you want the results deduped.
Eg: .attrs("id",true)

See: http://jquery.com/plugins/project/moreSelectors
Download from: http://www.softwareunity.com/sandbox/JQueryMoreSelectors/

Whatever solution you use it will have to iterate through the
checkboxes to read their IDs.

George


On Aug 18, 9:27 pm, Potluri <[EMAIL PROTECTED]> wrote:
> Hi,
>  I'm using this method to store id's of checked checkboxes in array object
> like
> $("[EMAIL PROTECTED]'checkbox']:checked").each(
> function()
> {
>  arrayName.push(this.id);}
>
> );
>
> it works but above way takes .656 secs for storing in array object with 50
> checkboxes. Is there a 1 line way to store id's in array object which
> completes in 0.0... secs. similer to  
> $("[EMAIL PROTECTED]'checkbox']:checked").attr("checked",false); which 
> completes
> in 0.0... secs to unchecked checked checkboxes.
> Do any one of you have idea of how to make storing id into array object
> faster.
>
> thanks in advance.
> --
> View this message in 
> context:http://www.nabble.com/store-checkbox-id%27s-in-array-object.-tf429141...
> Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to