I have 2 functions (A and B) called on a single div click. I need to call function A only on first click and function B whenever it is clicked. How could I do this?
Much simpler solution:
$('element').one('click',function(){
// Call A
}).click(function(){
// Call B
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With