In this codepen, you'll find the first example:
Subpar Pen
: https://codepen.io/anon/pen/jGpxrp
Additionally, here is the code for the second example:
Excellent Pen
: https://codepen.io/anon/pen/QqBmWK?editors=1100
I'm puzzled why the buttons labeled with "Yes
" and "No
" function properly in the "Excellent Pen
", but not in the "Subpar Pen
". On the surface, they seem to share identical code?