dblclick() - When user double click


Example

<!DOCTYPE html>
<html>
    <head>
        <title>dblclick() jQuery Event Method</title>
    </head>
    <body>
        <p>If you click two times, I will disappear.</p>
        <p>Click me two times!</p>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
        <script>
            $(document).ready(function() {
                //when you click p element it will disappear
                $("p").dblclick(function() {
                    $(this).hide();
                });
            });
        </script>

    </body>
</html>

you can see output by clicking live demo