На bootstrap я делаю это так:
<div id="my-modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title modal-feedback">Feedback Title</h4>
<h4 class="modal-title modal-voting">Voting Title</h4>
<h4 class="modal-title modal-thanks">Thanks Title</h4>
</div>
<div class="modal-body">
<p class="modal-text modal-feedback">Feedback Text</p>
<p class="modal-text modal-voting">Voting Text</p>
<p class="modal-text modal-thanks">Thanks Text</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $l__close;?></button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
Вызов модального окна для случая Thanks:
$(".modal-title, .modal-text").hide();
$(".modal-thanks").show();
$("#my-modal").modal();