Click jquery
RUN
<!DOCTYPE html> <html> <head> <title>jQuery Example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://code.jquery.com/jquery-2.0.0.js"></script> <script> $(document).ready(function () { var info = { author: "Cường", website: "freetuts.net" }; $('#showbtn').click(info, function (e) { console.log(e.data); return false; }); }); </script> </head> <body> <p>Click vào button, bật console để xem kết quả</p> <form method='get'> <input type='button' value='Click' id='showbtn'/> </form> </body> </html>
PHÓNG TO