How can I use jQuery to obtain all the ids of the anchors within a specific div and convert them to a array for passing over a load/get method?
The HTML will be in the following format:
<div id="a div id">
<div style="some styling">
<span><a href="" id="the_id_1"/></span>
<span><a href="" id="the_id_2"/></span>
<span><a href="" id="the_id_3"/></span>
</div>
</div>
So in theory I'm after passing the ids of the anchors over a load method so I can refresh the content of a div based on the selected ids.
Edit #1
The id is slightly different from what I mention above.
Here is the function I'm using to obtain the id number from the anchors:
function getSelectedTierPanels(tierId) {
var container = $('#tier'+tierId+' a').map(function() {
return this.id.match(/\d+$/);
}).get();
alert(container);
return container;
}