when I use this Code $('#pills-testscript-tab')
then I get this result in Chrome dev tools:
k.fn.init [a#pills-testscript-tab.nav-link]`
This result is expandable and I can access all its functions. If I instead use $('[data-toggle="pill"]')[1]
which is exactly the same DOM Element then I don't have access to all it's functions and the result in dev tools is:
<a class="nav-link" id="pills-testscript-tab" data-toggle="pill" href="#pills-testscript" role="tab" aria-controls="pills-testscript" aria-selected="false">Test Script</a>
This is not expandable.
I also tried to find a Function within the $('[data-toggle="pill"]')[1]
object which provides me the same set of Functions like in the $('#pills-testscript-tab')
object, but couldn't find any.
I don't understand why there is a difference. It might be that a Children Action [1]
changes the behaviour in the result. If someone has any Idea let me know.
Thank's a lot!