0

I want to get the id value from the spans.

Thanks Jean

2 Answers 2

2
var ids = $('div span').map(function() { return $(this).attr('id'); }); 

Your question isn't very clear so this is all I can come up with.

Sign up to request clarification or add additional context in comments.

Comments

0
$('span').each(function() { alert(this.id); }); 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.