How does showHidden input work?

I have this input that is hidden and I want to show it with a button click.

Someone recommended this:

onclick call this function and send it the id of the hidden input. for example if you had

then your call should look like this

but it does not work…

someone else told me to add this somewhere:

if(document.getElementById(id).getAttribute(‘type’) == ‘hidden’) {
document.getElementById(id).setAttribute(‘type’, ‘text’);

neither work… plz help…

problem solved

.hidden { display:none; }

Introduction 2 text goes here

Sample hidden text 2 goes here

Sponsor our Newsletter | Privacy Policy | Terms of Service