[jquery] How to select an element inside "this" in jQuery?

I know can I select an element this way:

$("ul.topnav > li.target").css("border", "3px double red");

but how can I do something like:

$(this > li.target).css("border", "3px double red");

This question is related to jquery

The answer is


I use this to get the Parent, similarly for child

$( this ).children( 'li.target' ).css("border", "3px double red");

Good Luck