Every day, Bootstrap must learn the cascade drop-down menu. The main application scenarios include Provincial/Municipal Association menus. If you are interested, refer to this article to introduce the custom bootstrap cascade drop-down menu, the main application scenarios include provincial/municipal associated menus. In this example, the associated menus in other scenarios are also applicable. To be honest, it takes a lot of effort and time to encapsulate a common component. The so-called universal component should be considered carefully and sighed! This sort of Bootstrap Association select involves many jquery, ajax, springMVC, and other knowledge points!
First, let me make a small introduction on behalf of this custom component.
"Hi, hello, my name is yunm. combox. js. The name that the host gave me is actually quite vulgar. I mainly add two custom attributes to the select component to load the corresponding data. ajax is used for data requests and springMVC is used for backend Data Processing (of course, other methods can also be used, you only need to return the corresponding json data). It is very easy to use!"
I. Interface Effects
Of course, it cannot be seen from the interface that a component package is good or bad, but at least, you feel very simple and beautiful, so well, with this impression, are you interested in continuing to look at it? I think the answer is yes.
Ii. Usage
①. Procity. jsp
First, load yunm on the page. combox. js (for introduction later, css and js of other bootstrap are not covered in this Chapter and skipped). At the same time, create two select statements. The specific format is as follows: