I am trying to show a hidden div in a colorbox on click
I cant figure out how to show the div inside the colorbox
the div is hidden, but I want it to be visible when it is displayed inside the colorbox obviously
<div class="test">test</div> // on click
<div id="messageform" style="display: none;"> // show this in colorbox
TEST
</div>
$('.test').click(function(){
$.colorbox({inline:true, width:"50%", open:true, href:"#messageform" });
});
this works only when the form messageform is not hidden, but how can i show on click in the colorbox?