The array does have the ids, but an alert doesn't show the inner
content of arrays.

Ca Phun Ung's solution seems 100% correct.

--
Ariel Flesler
http://flesler.blogspot.com/

On 25 jul, 14:57, hubbs <[EMAIL PROTECTED]> wrote:
> Still trying to get this to work, but it does not seem to.  Will this
> work getting the id attribute?  This was my goal.
>
> On Jul 23, 10:53 pm, Ca Phun Ung <[EMAIL PROTECTED]> wrote:
>
>
>
> > hubbs wrote:
> > > Ariel,
>
> > > I tried this but the alert just says object Object, I was expecting it
> > > to alert me of each checkbox that was clicked, and show me the ID.
> > > Did I do something wrong?
>
> > No. You're right. Ariel's solution is correct aswell. To get an alert
> > box with the actual id's listed try this:
>
> > alert(array.get());
>
> > Also to make Ariel's solution a little more elegant try this:
>
> > $("#testLink").click(function() {
> >     var array = $("#text input:[EMAIL 
> > PROTECTED]'']:checked").map(function() {
> >         return this.id;
> >     });
> >     alert(array.get());
> >     return false;
>
> > });
>
> > All I did was move the ID check into the element selector clause.
>
> > Ca Phun Ung
>
> > Web:http://yelotofu.com- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to