Jump to content

Show a input type="hidden" field?


AyRestaurant

Recommended Posts

someone told me to do this:

 

<script type="text/javascript">

function showHidden(id)

{

alert(

document.getElementById(id).value

);

//Sorry, yahoo was cutting it off

}

</script>

 

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

<input type="hidden" id="h" value="show me" />

 

then your call should look like this

<input type="button" value="click me" onclick="showHidden('id')" />

 

but it does not work... help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.