How to select all the 'a' element's id inside a div tag with id开发者_Python百科 "12"?
Technically you can't have an ID starting with a number (until HTML5, anyways), but this should work:
$("#12 > a")
var linkIDs = $('#12 a').map(function(link) {
return link.id;
}).get();
精彩评论