I have some contend in textarea ..When I alert it give correct contend .But when I append in "hello" text in text contend area .and get contend on button click it does not give updated contend why ? it should show with "hello" contend.It show previous contend why ?
here is code https://jsfiddle.net/4oa1q9qe/1/
$(document).ready(function(){
alert($("#test").html())
$("#btn").click(function(){
alert($("#test").html())
})
})
- Add "hello" in text area and get get the contend it gives same contend why as previous ?