Skip to content

Instantly share code, notes, and snippets.

@gyosit
Last active May 18, 2018 13:10
Show Gist options
  • Save gyosit/e915a309c16f9a0cf28d5b1b9dbca5ac to your computer and use it in GitHub Desktop.
Save gyosit/e915a309c16f9a0cf28d5b1b9dbca5ac to your computer and use it in GitHub Desktop.
<!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