$(\'#thisid\').parent(\'li\'); >
$(\'#thisid\').parent(\'li\');
$('#thisid').parents( 'li:eq(0)' );
Should do it. This will give you the first (:eq(0)) parent that matches being the tag you're searching for.
:eq(0)