<a onclick="$('#mydiv').slideToggle()"><b>View Hidden Content</b></a>
<div id="mydiv" style="display: none;">
Here is my content.
</div>
<a onclick="myModule_myfunction();">Show content and change bg color</a>
function myModule_myfunction()
{
$('#mydiv').slideToggle();
alert('now you can see the div');
alert($('#mydiv').text());
}