jQuery Event : Detect changes to the html/text of a div -


i have div has content changing time , ajax requests, jquery functions, blur etc etc.

is there way how can detect changes on div @ point in time ?

i dont want use intervals or default value checked.

something

$('mydiv').contentchanged() {  alert('changed') } 

if don't want use timer , check innerhtml can try event

$('mydiv').bind("domsubtreemodified",function(){   alert('changed'); }); 

more details , browser support datas here.

pay attention : in new jquery versions bind() deprecated , can use on() instead it


Comments