I have a function to get the tag at the top that contains the key specified to it, anywhere in the text.
key
But I want to have the
Please check filter() in jquery.
Filter
Filter demo as specified in api.jquery
$('li').filter(function(index) { return $('strong', this).length == 1; }).css('background-color', 'red');