Get All IDs Starting With "x"
<p>I'm trying to get an output of elements on a page with this:</p>

<pre><code>$('a#exportPage').on('click',function(){
ExportIds = $('[id^="appendHeading"]').attr('id');
ExportTexts = $('[id^="appendHeading"]').text();
$("#PrintIds").append("ObjectID:"+ExportIds+"Content:"+ExportTexts);
});
</code></pre>

<p>But It only gets the "last ID" but not all of them. I've been to this trouble before and needs to get it in my head!</p>

<p>I want the output to be "ObjectID:appendHeading,Content:Texts,ObjectID:appendHeading,Content:Texts" etc.,</p>

<p>Thanks in advance!</p>
