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(){ $('#showbtn').click(function(){ var value = $('#your_name').val(); $('#result').html(value); return false; }); }); </script> </head> <body> <form method='get'> <input type='text' name='your_name' id='your_name'/> <input type='submit' value='Hiển thị' id='showbtn'/> </form> <div id='result'></div> </body> </html>
PHÓNG TO