<!DOCTYPE html> <html> <head> <title></title> <script src="js/libs/jquery-1.9.0/jquery.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script> function check(){ x = $("#tex").val(); alert(x); } </script> <input type="text" id="tex" value="練習" size="20"> <input type="button" onclick="check();" value="チェック"> </body> </html>