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