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…