I'm having a hard time arranging my ajax script very well and i thinking if i could help some help here
$(document).ready(function() {
$follow_container = $('#follow_container');
var follow = localStorage.getItem('follow');
if (follow !== null) {
$follow_container.html(follow).show()
}
$('.followclick').on('click', function(event) {
if (follow == null) {
$('#follow_container').load('http://mysite/news.asp', function() {
localStorage.setItem('follow', $follow_container.html());
}
});