[Solved] Jquery sends double request on every single click

Faisal Sharif Asks: Jquery sends double request on every single click
I am using this script on wordpress

Code:
    jQuery( document ).ajaxComplete(function() {
        my_fun();
    });

    function my_fun(argument) {
        jQuery('.bookable').on('click', function(event) {
            event.preventDefault();
            month = jQuery(this).data('month');
            year = jQuery(this).data('year');

            date = jQuery(this).find('font').html().match(/d+/);
            finaldate = date[0];

            productID = '<?php echo $product_id ?>';
            
            $.post('/customAjax.php', {
                date: finaldate,
                month: month,
                year: year,
                productID: productID,
            }, function(data, textStatus, xhr) {
                /*optional stuff to do after success */
            });
        });
    }

But it sends multiple requests on every single click i want just one request sent on one click is there any way to solve this thanks in advance

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.