2
How do I select elements that have an id set? For example, inside the section below I have the following:
<section>
<div class="div"></div>
<div id=""></div>
<div id="div2"></div>
<div></div>
<div id="div3"></div>
</section>
In the case above, I need to pick up only the 3rd and 5th div that has a valid and not empty id. How can I pick this up at jQuery?
Great answer @Tobiasmesquita, I edited only for visualization of the result to be more comfortable for us.
– BrTkCa
It worked right!
– DiChrist