Question about accessing object data?

Question about accessing object data?

jQuery n00b question;

< div  id = "A​​​​B1" > </ div >
<div id="AB2"></div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
var jata$("div[id^='AB']");

using firebug I can see jata object has 0 -> "AB1" and 1 -> "AB2".  If I want to access the div id's via name or have them document.write to screen - what would  be the syntax?