Dblclick RUN
 
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
        <title>jQuery Example</title>
5
        <meta charset="UTF-8">
6
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
        <script src="https://code.jquery.com/jquery-2.0.0.js"></script>
8
        <script>
9
            $(document).ready(function(){
10
                
11
                $('#showbtn').dblclick({domain:"freetuts"}, function(e){
12
                   console.log(e.data);
13
                });
14
            });
15
        </script>
16
    </head>
17
    <body>
18
        <form method='get'>
19
            <p>Bật console lên để xem kết quả</p>
20
            <input type='button' value='Click 2 lần để hiển thị' id='showbtn'/>
21
        </form>
22
    </body>
23
</html>