Ajax tab navigation
I'm trying to create ajax tab navigation to load the content of the tab only when it's clicked... I have two tabs, "Latest posts" and "Popular posts" and I have the necessary php code to retrieve the posts from database. When site is loaded the "Latest posts" tab is active and posts are displayed automatically but I want to retrieve popular posts as well when someone clicks "Popular posts" tab...
Is there any example of code available on the net?
Thanks in advance