@DenisField
Here is a slightly revised snippet provided Vadim on the dev team. It uses unique IDs and attaches a general onclick handler for all list-items.
$.each(tweets, function(i, tweet){
$('#m1-twitter-result-list1').append(
'<li id="m1-twitter-result-listItem1-' + i + '" class="' +
(i == 0 ? 'm1-first ' : "") +
(i == (tweets.length - 1) ? 'm1-last ' : "") + ' m1-twitter-list-item">' +
'<div id="m1-twitter-result-text2" class="twitter-post m1-text">' +
tweet.text +
'</div>' +
'<img id="m1-twitter-result-image1" src="' +
tweet.user.profile_image_url +
'"/>' +
'</li>');
});
//general click hander for list-items
$('.m1-twitter-list-item').click(function(e) {
alert("Clicked text: " + $(e.target).text());
})
Wayne
Genuitec Mobile Team