I think that there is no need to use it but if you want to seek for the a
element that is the only child this will work
$('li').click(function(){
var requiredID = $(this).children("a:only-child").attr("href")
$(requiredID).slideToggle();
});
Working Fiddle