I have a function, there's 2 button after click pass different parameter and execute the same function, click button do ajax load html cover already loaded.
The problem is after I click a
then click b
then I click .reload_btn
it will execute twice.
Is it possible cancel the earlier click a
execute function c?
$(".a").click(function(){
function c(1);
});
$(".b").click(function(){
function c(2);
});
function c(select_el){
$('.reload_button').click(function(){
.. // ajax reload content
});
};