Please note that if you made changes to textarea, after it had rendered; You will get the updated value instead of the initialized value.
$(function () {
$('#btnShow').click(function () {
alert('text:' + $('#addressFieldName').text() + '\n value:' + $('#addressFieldName').val());
});
});
function updateAddress() {
$('#addressFieldName').val('District: Peshawar \n');
}
$address = "School: GCMHSS NO.1\nTehsil: ,\nDistrict: Haripur";
?>
<?php echo '
As you can see the value of textarea will be different than the text in between the opening and closing tag of concern textarea.