Created
March 11, 2020 06:20
-
-
Save apalevich/70f08353bf7c4054da7b4daa72eb535f to your computer and use it in GitHub Desktop.
chinesenames
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
<script> | |
var values = { | |
'checkbox-love': false, | |
'checkbox-money': false, | |
'checkbox-family': false, | |
'checkbox-business': false, | |
'checkbox-luck': false, | |
'checkbox-power': false, | |
'checkbox-wiseness': false, | |
'checkbox-smartness': false, | |
'checkbox-kindness': false, | |
'checkbox-intuition': false, | |
'name': false, | |
'email': false | |
} | |
var features = $("input[type=checkbox]"); | |
for (var i=0;i<features.length;i++) { | |
if (features[i].checked) | |
values[features[i].name] = true; | |
} | |
values.name = document.querySelector("input[name='name']").value; | |
values.email = document.querySelector("input[name='email']").value; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment