Skip to content

Instantly share code, notes, and snippets.

@codingwithsara codingwithsara/index.html Secret
Created Oct 3, 2019

Embed
What would you like to do?
JS Checkboxes 1
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>チェックボックスの値取得</title>
</head>
<body>
<div class="container">
<input type="checkbox" class="checks" value="あいうえお"> あ____<br>
<input type="checkbox" class="checks" value="かきくけこ"> か_____<br>
<input type="checkbox" class="checks" value="さしすせそ"> さ_____<br>
<button onclick="getValue()">値を取得</button>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.