Hi everyone.
I am not familiar with js and jQuery, but need to create function to add/remove blog post to "My favorites" page and update counter of saved posts. Is any ready solution - plugin or snippet - to it?
There is my html snippet.
<h1><a href="http://www.example.com/add-post-to-my-favorites-page.htm" id="post_0064"><span class="bookmark" title="My Favorites — Add/Remove">Favorites </span>Heading</a></h1>
<p>Body copy.</p>
[...]
<ul class="ul_favs">
[...]
<li id="bookmarks" <a href="http://www.example.com/account/favs.htm">My Favorites</a><sup><!-- Counter -->46</sup></li>
</ul>
I think that it can be done with $.ajax, but have not idea how. Maybe something like that?
Thanks in advice.