Last active
May 18, 2018 13:10
-
-
Save gyosit/e915a309c16f9a0cf28d5b1b9dbca5ac 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
</head> | |
<body> | |
<form name='form'> | |
お名前:<input id="user" name="user" /> さん <br> | |
<a id="submit" href="https://script.google.com/macros/s/xxxxx/dev?cmd=res&name=">送信</a> | |
</form> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> | |
<script> | |
$(function(){ | |
$('#user').keyup(function(){ | |
var link = "https://script.google.com/macros/s/xxxxx/dev?cmd=res&name="; | |
$('#submit').attr("href",link+$('#user').val()); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment