I have the following:
item1 sub1 sub2
Normal DOM methods allow to access text contents for just one element, rather than jquery:
$("#list li").click(function() { alert($(this)[0].firstChild.textContent) });
firstChild in this case is the textNode beneath the li element