setTriggerChange('id');
$("#id").change(function(){
alert('text has been changed');
});
function setTriggerChange(id){
var currentVal = '';
$("#"+id).focus(function(){
currentVal = $(this).val();
});
$("#"+id).keyup(function(){
if(currentVal != $(this).val()){
$(this).trigger('change');
}
});
}