<ul id = "list-unstyled"> <li>aaa</li> <li>bbb</li> <li>ccc</li> </ul> $('#list-unstyled').on('click','li',function(){ alert($(this).text()); })