Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

List click event

Hi,

I have used jquery as the click event handler on the listview control on different applications, but the latest application fails when the click event is added! The only difference I can spot is that the working app is referencing jquery 1.8.2 and the version that fails is referencing jquery 1.9.1 has the click event changed between versions?

jquery:

Appery('loadlis').append(
$('').append(
$('span').attr('class', 'loadlist').append('Test Record')));
});
}

$('.loadlist').live('click', function() {
alert('click');
});/span

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

List click event

Hello! Method live is deprecated in 1.7 and removed in 1.9 version http://api.jquery.com/live/. Please try method on instead http://api.jquery.com/on/

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

List click event

Hi Marina, that has fixed the problem thanks.

Return to “Issues”