Q:

jquery selector for elements with only 1 child

I need a jquery selector for elements with only 1 child.
so a list with a single list item will match but empty lists or lists with more than one list item will not.
Is this possible?

A:

$('li:only-child').parent(); 

?
Here is a demo

