I'm fairly certain this will work:
var els = $('[@id]'); Then you could iterate over those with .each() to find the valid ids based on a regex. m. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of jazzle Sent: Monday, November 20, 2006 7:36 AM To: discuss@jquery.com Subject: [jQuery] Select only elements with ID ? Is it possible to select only the elements which have (valid) IDs with some straightforward CSS/XPath? -- View this message in context: http://www.nabble.com/Select-only-elements-with-ID---tf2670100.html#a744 5634 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/