If you need to retrieve some hidden values you can do using JavaScript. Just add an unique id
to your element and retrieve it's value. Here's a jQuery way (without any document.ready()
stuff):
<div style="display:none" >
<h2 id="show_me">hi all</h2>
<p>abc</p>
</div>
<script>
element = $('#show_me').html();
alert(element)
//Plain JS way would be something like this.
element_js = document.getElementById('show_me').innerHTML;
alert(element_js)
</script>
You are not displaying per se the retrieved element but at least you are capable of showing it's contents and do whatever you like with it. Actually, I think this would be the closest thing in fetching the hidden element.