Giter VIP home page Giter VIP logo

jquery-tree-select's Introduction

jquery-tree-select

This plugin takes code that looks like this:

<select class="multitier" name="my_select">
 <option value="">(none)</option>
 <option value="1">Category 1</option>
 <option value="2">Category 1 &gt; Subcategory 1</option>
 <option value="3">Category 1 &gt; Subcategory 2</option>
 <option value="4">Category 2</option>
 <option value="5">Category 2 &gt; Subcategory 1</option>
 <option value="6">Category 2 &gt; Subcategory 2</option>
 <option value="7">Category 2 &gt; Subcategory 3</option>
 <option value="8">Category 2 &gt; Subcategory 4</option>
 <option value="9">Category 2 &gt; Subcategory 4 &gt; Subsubcategory 1</option>
 <option value="10">Category 2 &gt; Subcategory 4 &gt; Subsubcategory 2</option>
</select>

... and transforms it into a select box that just shows (none), Category 1, and Category 2. Then when you click on Category 1, a new select box pops up showing Subcategory 1 and Subcategory 2.

There is no configuration. Just give your select tag a class="multitier" and you are good to go.

Note: after releasing this, I then found this project, which seems to be a much more complete version of what I was trying to do:

http://code.google.com/p/jquery-option-tree/

With that said, I still think mine's pretty simple and cool.

jquery-tree-select's People

Contributors

bombino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adoveil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.