Thursday, September 6, 2012

selecting the text of an li element using Jquery

<script type='text/javascript'>
$("li").click(function(event){
//alert($("this").attr('href'));
console.log($(this).text());
$('#append-here').append($(this).text());
event.stopPropagation();
});
</script>

No comments:

Post a Comment