Created
July 25, 2019 04:59
-
-
Save kaneshin/adb93029fee9084fe7d7ac6480aa020a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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