How to create click event for specific link in a jQuery listview.

后端 未结 6 501
北荒
北荒 2020-12-07 06:08

I\'m trying to create a function that starts when you click on a specific link in a listview. The issue is that event doesn\'t seem to fire when you click the link. The lis

6条回答
  •  一生所求
    2020-12-07 06:30

    Something like this:

    $(function() {
       $("#listviewForLastTenCalls li").on('click', function() { alert('clicked');  });
    });
    

提交回复
热议问题