You can use the parents() method which matches parents against a selector
http://api.jquery.com/parents/
Or if you’re using 1.4 there is a new parentsUntil() method
http://api.jquery.com/parentsUntil/
You can use the parents() method which matches parents against a selector
http://api.jquery.com/parents/
Or if you’re using 1.4 there is a new parentsUntil() method
http://api.jquery.com/parentsUntil/