在Dropdown中填充树结构中的许多复选框

伙计这是复选框,它以树形结构显示。 我需要它显示在下拉列表中。

    $(document).ready(function(){ $('.team').on('click',function(){ if($(this).is(':checked')){ $(this).next().next().show(); }else{ $(this).next().next().hide(); } }); });    
Real Madrid
Cristiano Ronaldo
Shabi Alanso
Iker Casillias
Man City
Sergio Aguero
Super Mario

我想在一个下拉列表中填充。 帮我。

提前致谢。!!

查看jquery UI小部件和jSTree