I am trying to display server side logs on browser but problems is I can not display whole log text inside a div therefore I need a div that only display last 100 or 200 lines and hide the previous logs text and only display the newly added text.
I googled allot but did not find anything.
Thank You.
UPDATE I got the solution
var length = $("#parentDiv > #childDiv").length;
if(length > 20){ //20 is no of lines
$('#parentDiv').find('#childDiv:lt(4)').remove(); //remove first four div
}
tag? Show some sample of your work if you have tried out. – aniskhan001 Aug 06 '14 at 06:48