Your "special id" is called a class. . (dot) is for class and # is for id.
Example: If you have a lot of span-tags with text, you can run through all of them using .each()
and then grab the text using .text()
<span class="myElements">Test 1</span>
<span class="myElements">Test 2</span>
<div class="myElements">Test 3</span>
$(".myElements").each(function () {
console.log( $(this).text() );
});
//Console output
Test 1
Test 2
Test 3
This will log every .myElements
(all the elements with class = myElements) to the console.
As you're inside a function(), you can use $(this)
to target each element as you iterate through them.