I am making a blinking cursor .I need this cursor should blink at the end of data (a data coming after few second) and appending in div.Till now my cursor position is fixed .Now i need to move my cursor at the end of contend.Here is try. http://jsfiddle.net/naveennsit/prUYP/
$(document).on('click', '#call', function(event) {
setInterval(function(){
$('#realTimeContents' ).append("kkkkkkkkkk"+'\n');
},3000);
setInterval(function(){
cursorAnimation();
},600);
});
function cursorAnimation()
{
// alert("yy")
$("div.cursor").animate(
{
opacity: 0
}, "fast", "swing").animate(
{
opacity: 1
}, "fast", "swing");
}
I need result like this
kkkkkkk|
KKKKKK KKKKKKKK|
KKKKKk kkkkkkkk kkkkkkk|