$('ul a').click(function (){ alert($(this).text()) return false; }); $('ul').click(function () { alert('Chào mừng bạn đến với Cunghocweb.com'); });
<ul> <li><a href="http://cunghocweb.com">Cunghocweb.com</a></li> <li><a href="http://thenao.com">Thenao.com</a></li> <li><a href="http://kulerthemes.com">Kulerthemes.com</a></li> </ul>