jquery - How to get event when text goes to new line? -


is there event in jquery when on 'text' goes new line.

i need show alert box when text goes new line in jquery?

here fiddle.

http://jsfiddle.net/naveennsit/rgehe/

   setinterval(function () {        $('#realtimecontents').append("hiiiii. div")    }, 1000);  

how checking height of div on each interval?

$(function() {   var h = -1;   setinterval(function () {     var newheight = $('#realtimecontents').append("hiiiii. div").height();     if(h == -1) h = newheight;     if(h != newheight) {         h = newheight;         alert("i've changed height");     }   }, 1000); }); 

here fork of fiddle.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -