Selectors

Selectors

Hi,

I have the following code:

<p>
  <a class="test" href="#">name</a><div class="loader">loading...</div>
</p>
<p>
  <a class="test" href="#">name</a>
</p>
<p>
  <a class="test" href="#">name</a>
</p>


If a-tag with the class "test" is $this (e.target) and I want to acces the next element (div=loader) I thought I have to take the next() selector. But it's not working. When I change the div to an a-tag I can use next() and siblings() without any problem. Why is that and how can I access the element if it's not the same tag?

thx
TC