Is there a better way to select grandparent elements in jQuery in order to avoid this ?
$(this).parent().parent().parent().parent().parent().children(\".titl
Use the parents() selector to get all parents of an element. You can then either search the collection, or iterate over it if you want to affect all ancestors.
parents()