Before the below code make sure you have a div of id msg-div
(name's your choice) and by default set its display to none
<script>
$(document).ready(function() {
$('#myform').ajaxForm(function() {
$('#msg-div').css('display','block')
$('#msg-div').html('success message here')
});
});
</script>