My question is , if there's a possibility to keep data obtained by .append function after refreshing page.Normally all data appended is going to disappear after refresh.
$("<div id='in2'>Hello fellows :-)</div>")
Only by storing it on the local computer in some manner. That can be achieved in a number of ways, from querystrings, to cookies, to local storage.
As you're using jQuery, a plugin such as this local storage one might be the way to go.