Hello
I have a code and on page load it gets clicked, I see by alert for example. The problem is it send not needed ajax request. Its hard to find origin clicker by hand. Is there a way programically detetc who clicked the class?
//Delete all event from betting slip
$('.clear_all_slip').click(function() {
alert('who click?');
clear_choose_bet();
$.getJSON(base_url_lang + "ajax/clear_slip/", function(data){
if (data.length == 0) {
$('#current_slip').html('');
$('#express_slip').html('');
$('#system_slip').html('');
count_express_total_odd();
$('#to_win_ordinary').text('0');
$('#to_win_express').text('0');
$('#to_win_system').text('0');
$('#total_odd').text('0');
$('#system_stake_total').text(0);
$('#stake_per_bet').attr('value', '');
$('#stake_express').attr('value', '');
}
});
});