I've come across another problem that I can't seem to solve...
I have a tabbed document and when I click a tab, i want it to load a page in the container. Everything in my script works and there are no errors but it doesn't load anything in the content container...
Also, there are a few pieces I don't get about the $.ajax which is data? What exactly is this returning? I tried to google it but didn't come back with much of an answer. I'm just curious if I could put my variables in the connection string(URL) instead of the data or if there's an advantage to using it?
As always, thanks in advance!
$(document).ready(function(){ $('li').click(function(){ $('li').each(function(){ $(this).removeClass('selected'); }); $(this).addClass('selected'); $(this).click(function(){ $.ajax({ type:'POST', url: 'http://google.com', success: function(data){ $("#main-content").html(data); } }); }); }); })