I am building a HTML5 application with Intel XDK and Jquery Mobile. I've created a listview and want to listen to its 'tap' event. My code is very similar to the tutorial's, but something is still wrong. Maybe it's the place where I put it? I'm puting the event listener right after I refresh the listview. Documentation hasn't helped much and I couldn't find any question similar to mine :/ Code:
list.listview("refresh");
$('#favourslist > li').bind('tap', function(e)
{
console.log('tapped');
//var targetValue=this.getAttribute('title');
//alert(targetValue);
});