devo ancora finirla, ma risolvo con questa soluzione:
codice:create("HOW-II");Nel box che si crea il path seguente sarà nei 2 options rispettivamente "HOW-II.11" e "HOW-II.12"codice:function create(path) { var paths = path.split('.'); var current = form;//var global contenente il JSON var newpath=new String(); var i; for (i = 0; i < paths.length; ++i) { if (current[paths[i]] != undefined) { current = current[paths[i]]; } } lihtml="<li><select>"; for(p in current) { v=path+"."+p; lihtml+="<option value='"+v+"'>"+v+"</option>" } lihtml+="</select></li>"; jQuery("#container > ul").append(lihtml); jQuery("#container > ul > li:last > select").change(function(){ create(jQuery("option:selected",this).val()); }); }