<head>
<link rel= "stylesheet" type= "text/css" href= "css/jQuery.Tree.css" />
</head>
<body>
<ul id= "tree" >
<li>
<label><!-- -->
<input type= "checkbox" />
</label>
</li>
<li>
<label>
<input type= "checkbox" />
</label>
<ul>
<li>
<label>
<input type= "checkbox" />
</label>
</li>
</ul>
</li>
</ul>
<script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" >
</script>
<script type= "text/javascript" src= "jQuery.Tree.js" >
</script>
<script type= "text/javascript" >
$(document).ready(function(){
$( "#tree" ).Tree();
});
</script>
</body>
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/77064/