I'm currently facing an issue with fetching a DOM element from a jQuery selector array.
var index = $(this).index();
$titleElement = $(".title:not(.small)")[index];
Unfortunately, the code above only gives me the text and not the actual DOM element that I need. My goal is to retrieve the DOM element so I can determine its position on the page and scroll to it.
In this case, $(this) refers to the list element, while .title represents multiple elements on the page with the class "title" and "title small".
Thank you for any assistance you can provide.
PS: I have not been able to find a solution on StackOverflow or through a Google search. It's possible that I am not using the correct terminology when searching for a solution to this issue.