I'm having an issue with this code
PHP Code:
<head>
<
style>
    
div.div_3sg
    
{
        
width100%;
    }
    
div.tab_3sg
    
{
        
border1px solid;
        
marginauto;
        
clearboth;
        
height120px;
        
width98%;
        
padding-left4px;

    }
    
#tabs li {
        
list-stylenone outside none;
    }
    
#tabs ul {
        
padding0;
        
border-bottom0 none !important;
    }

    
#tabs li, #tabs li a {
        
floatleft;
    }
    
#tabs ul li{
        
font-weightbold;
        
padding8px;
        
text-decorationnone;
        
cursorpointer;
    }
</
style>
</
head>
<
script type="text/javascript">
    
document.write("\<script src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'>\<\/script>");
</script>
<body>
<div id="tabs" class="div_3sg">
    <div style="display: block; float: left; ">
       <ul>
<script type="text/javascript">
    jQuery.getJSON( "include_js.php",function(data){
        jQuery.each(data.groups, function(id, group){
            var a=1;
            document.writeln('<li id="#tab-'+(id+1)+'">A'+group.name+'</li>');

        });
    });

</script>
       </ul>
    </div>
</div>

</body> 
That code produces the following result.

PHP Code:
<li id="#tab-1">AEvents</li>
<
li id="#tab-2">AGroups</li>
<
li id="#tab-3">AInformation</li
Can anyone see why its freaking out and clearing everything off the page.