<script> if ($('#tabs:active:2')){ alert("TRUE") } </script> 
  • Let's put it this way: write what is given and what is required_to find out. - Sergiks
  • @Iranda Are you kidding so edit header? "How to find out property from id?" - Stein_

1 answer 1

 var tab = $('#tabs:active:2'); if (tab){ alert(tab.attr('id')); }