ProAnswers.org

In Javascript Can I add more after "this" ?

Yes you can use something like :

Change $(".info") to $(this).find(".info") and it will work



One thing you should know about a selector is that you are able to define a second argument as the scope of the selector, i.e.

$(“selectorString”, scopeObject)

 Make the second argument $(this).closest("li"). It will find the list item containing your image and select .info descendants of that container:

$(".info", $(this).closest(“li”)).fadeIn(1000);