.change function in jquery code example
Example 1: on change jquery
$("input").change(function(){
alert("The text has been changed.");
});
Example 2: jquery detect change in textarea content
$('#textareaID').bind('input propertychange', function() {
$("#yourBtnID").hide();
if(this.value.length){
$("#yourBtnID").show();
}
});