$(\'#thisid\').parent(\'li\'); >
$(\'#thisid\').parent(\'li\');
$('li').has('#thisid')
http://api.jquery.com/has/