With the popularity of e-commerce, this multi-level linkage drop-down menu embodies more fully, the most obvious is the multi-level linkage of the address selection, so here is a simple to share the jquery cxselect Multi-level linkage drop-down menu
Cxselect is a multi-level linkage menu plugin based on jQuery, which is applicable to the linkage menu of provinces, cities and categories.
The list data is obtained through AJAX (it needs to run in a server environment), or it can be customized using variables, and the data content is in JSON format.
Provide domestic and provincial data (data source: Basecss/citydata date:2014.03.31)
The individual has always had the habit, when has the new knowledge point needs to study, does the first thing absolutely is looks the API, then looks at the demo! So first attach the API:
Then look at the demo I wrote, it's really simple!!! Directly on the code:
<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%><%string path = Request.getcontextpath () ; String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";%> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
This time, of course!The simple example is here, as for the more complex, then you can enjoy the play it!
JQuery cxselect Multilevel Linkage drop-down menu