I have a CSS
   .counter{
   span{display: none;}
   &:before{
   content: "Bookmark";
}
}
   <div class="counter fl" id="add_counter" ></div>
i want a JQuery code that change content attribute of CSS from bookmark to bookmarked
I have a CSS
   .counter{
   span{display: none;}
   &:before{
   content: "Bookmark";
}
}
   <div class="counter fl" id="add_counter" ></div>
i want a JQuery code that change content attribute of CSS from bookmark to bookmarked
 
    
    You can add another class that has content set to bookmarked:
$('.counter').addClass('bookmarked');
CSS:
.bookmarked{
    content: "Bookmarked";
}
