I would like to combine my Selector that selects an Element based on an mouseover Event. This is what I have so far.
parentItem.mouseenter(function ()
{
var childItems = $(this).add(this + "li:first");
childItems.show();
});
I understand that I can’t use ‘this’ by itself nor can I add the two together, because it isn’t a string.
How would I accomplish this concept? Thanks.
If I understand correctly you are trying to select the first
liunder the element that fired the event? You could usethisas a context: