I can't figure out why my JS function won't fire. A toggle function is working, but the showme function isn't. There are no console errors so I'm not sure how to debug.
It's trying to be a 2-part interaction: 1) click in field and menu displays 2) click on menu and toggle buttons display
The full code is here: https://jsfiddle.net/ericaheinz/cjhxzmn6/4/
Here are my js functions:
function showme() {
alert("Woo!");
var y = document.getElementById("why1");
y.style.display = "none";
var z = document.getElementById("love1");
z.value = "Title 1";
}
function toggle(button) {
button.classList.toggle("is-on");
}