Skip to content

Instantly share code, notes, and snippets.

@memememomo
Created May 19, 2010 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save memememomo/407016 to your computer and use it in GitHub Desktop.
Save memememomo/407016 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("input#button").click(function(){
$("input#text").val("ボタンから挿入");
});
});
</script>
<body>
<form>
<input type="text" id="text">&nbsp;
<input type="button" value="挿入" id="button">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment