$("#tabs a").click(function() { $.get( $(this).attr("href"), function(data) { $("#contaioner").html(data); }); return false; });
see also: http://docs.jquery.com/Ajax and (since I guess you are German speaking): http://www.ajax-community.de/javascript/5951-jquery-ajax-ergebnis-ins-dom-laden.html by(e) Stephan 2009/1/29 jampov <jam...@gmail.com>: > > Hello. I need some help with tabs jQuery v2.7.4 of stilbuero. > I want to use Ajax Mode and open the links in a given container. For > example: > > <div id="box"> > <ul id="tabs"> > <li><a href="01.html"><span>Tab one</span></a></li> > <li><a href="02.html"><span>Tab two</span></a></li> > <li><a href="03.html"><span>Tab three</span></a></li> > </ul> > </div> > ... > <div id="container"></div><!-- Open external links here (01.html, > 02.html and 03.html) --> > > > Can you tell me how to do it? > Sorry for my bad English. > A greeting.