Javascript event problem

Hello everyone,
If I type the name, and I check and Gender Scholar, my button will appear
What I am looking to:
Check my buttons, and when I start typing the name, the button

Submit appear, st if I delete the text, the Submit button


Here’s the script: