selecting -- a jquery plugin for chained selecting, coded by CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
jquery.selecting.coffee
jquery.selecting.js

README.md

jquery-selecting -- a jquery plugin for chained selecting, coded by CoffeeScript

Usages:

$('selector').selecting({
  remote: {
    url: 'json_array_url',
    data: {}
  }
});

JSON Array format:

[ [ ["Select[name]", "option"]
    ,["univ", "university"]
    ,["campus", "campus"]
    ,["dorm", "dormitory"]
  ]
  ,[["USTC", "University of Science and Technology of China"]
    ,[["west", "west campus"]
      ,[["x007", "Student Dormitory No.7"]
      ]
      ,[["x008", "Student Dormitory No.8"]
      ]
    ]
    ,[["east", "east campus"]
    ]
    ,[["north", "north campus"]
    ]
    ,[["south", "south campus"]
    ]
  ]
  ,[["HFUT", "HeiFei University of Technology"]
  ]
  ,[["AHU", "AnHui University"]
  ]
]