Why isn't there a $('.someSelector').id() method in jQuery?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-04-07T23:11:36Z Indexed on 2010/04/07 23:23 UTC
Read the original article Hit count: 123

Filed under:

I was wondering if anyone knew why jQuery doesn't have a simple $().id() method. It seems silly to have to pull the id using $().attr('id'). I would think that the id attribute was common and useful enough to have its own call.

© Stack Overflow or respective owner

Related posts about jQuery