Skip to content

Instantly share code, notes, and snippets.

@kaneshin
Created July 25, 2019 04:59
Show Gist options
  • Save kaneshin/adb93029fee9084fe7d7ac6480aa020a to your computer and use it in GitHub Desktop.
Save kaneshin/adb93029fee9084fe7d7ac6480aa020a to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
It works!
<div id="hoge">hoge</div>
<textarea id="text"></textarea>
<a href="javascript:foo()">foo</a>
<script>
function foo() {
$('#hoge').html($('#text').val())
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment