css:
.level0 ul {list-style-type: none; height: 80px; width: 600px; margin: auto;}
.level0 li {float: left;}
.level1 ul {list-style-type: none; height: 80px; width: 600px; margin: auto;}
.level1 li {float: left;}
.level2 ul {list-style-type: none; height: 80px; width: 600px; margin: auto;}
.level2 li {float: left;}
css in javascript:
<script>
function getId(id){
$('.level'+id +' ul').css('list-style-type: none', 'height: 80px', 'width: 600px', 'margin: auto');
$('.level'+id +' li').css('float: left');
}
</script>
When I use css normal is ok, but when using css in javascript is error, can you help me ?