🤯 New: Coding Assessments Practice your skills on real-world programming challenges

jquery get parent element with specific class

Sam Deering
Share

Quick jQuery snippet to get parent elements with specific class.

var container = $(this).parents('.item');