How to show/hide a submit input based on a button submit by javascript?

Hello everybody
I want to show a submit input based on a button input. In other words, user should click the button input to be appeared the submit button. How to do it?
I tested with this code, but it does not work!



function yesnoCheck() {
if (document.getElementById(‘send2’).checked) {
document.getElementById(‘new-hide’).style.visibility = ‘visible’;

         }


         }
      </script>
Sponsor our Newsletter | Privacy Policy | Terms of Service