Cascader type
Suchjs built-in type, which can be used for cascading menus, etc. For details, see :cascader type document
Demo
-
Such.assign("city", { "US": { "Alaska": [ "Los Angeles", "San Diego", "San Francisco" ] }, "UK": { "England": [ "London", "Bath", "York" ] }, "Italy": { "Lombardy": [ "Milan", "Brescia", "Monza" ] } }); Such.as({ country: ":cascader:#[data=city]", state: ":cascader:&./country", city:":cascader:&./state" });