$(\'#thisid\').parent(\'li\'); >
$(\'#thisid\').parent(\'li\');
Simple, use parents()
var parents = $("#thisid").parents('li');