<a href="#" id="button" title="[[+pagetitle]]"/>
<div class="pop-up">
<form method="post">
<input type="hidden" class="my_input">
</form>
</div>
$( "#button" ).click(function(){
var title = $(this).attr('title');
$('.pop-up').find('.my_input').val(title);
});