2013-08-09, 16:03
[Tutorial] Ajax profile tabs |
Name: Ajax profile tabs
Autor: N/A
Version: All
Category: Javascript
This tutorial will allow you to switch profile tabs without page refresh.
Admin Panel Modules HTML & JAVASCRIPT JavaScript Code Management New JavaScript
- Code:
[panda=js]$(function(){
var tabListeners = function() {
$('#tabs li').click(function(e) {
e.preventDefault();
var url = this.firstChild.href;
if (url == '#') return;
$('#main').load(url+' #main-content', tabListeners);
});
};
tabListeners();
});