What about a first-parent ?

What about a first-parent ?


Hi,
Example : I have list into other list, in few LI element I've got
input. I want to take all input element which have the class "toto"
and remove the LI which is the parent of the input (not the direct
ancestor ;)).
So it will be good if I could do something like:
$('input.toto').parents('li:first-parent').remove();
What about that please ?