Page 1 of 1

List click event

Posted: Tue Mar 11, 2014 12:44 pm
by Joe Bohen

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


List click event

Posted: Tue Mar 11, 2014 12:58 pm
by Maryna Brodina

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/


List click event

Posted: Wed Mar 12, 2014 1:30 pm
by Joe Bohen

Hi Marina, that has fixed the problem thanks.