title: jQuery AJAX tabs + PHP
body: <p>seems like I'm stuck with jQuery tabs. I'm trying to pass selected tab name to some php script but is seems like it doesn't get any data. </p>
  
  <p>This is how tabs normally work without any response from server side:
  <a href="http://pastebin.com/KBxj7p5k" rel="nofollow noreferrer">http://pastebin.com/KBxj7p5k</a></p>
  
  <p>And this is how I try to pass the the current tab name to the server:</p>
  
  <pre><code>$(document).ready(function() { 
  
      $('ul.tabs li').css('cursor', 'pointer'); 
      $('ul.tabs.tabs1 li').click(function(){ 
            var thisClass = this.className.slice(0,2); 
            $('div.t1').hide(); 
            $('div.t2').hide(); 
            $('div.t3').hide(); 
            $('div.t4').hide(); 
            $('div.' + thisClass).show('fast'); 
  
           $('ul.tabs.tabs1 li').removeClass('tab-current'); 
           $(this).addClass('tab-current'); 
  
           var name = thisClass; 
           var data = 'name='+name; 
           $.ajax ({ 
               type:"GET",
               url:"handler.php", 
               data:data, 
               success:function(html) { 
                   thisClass.html(html); 
               } 
           }); 
  
      });
  </code></pre>
  
  <p>Thanks.</p>