Home > Article > Web Front-end > jQuery selector project example analysis and implementation code_jquery
First of all, jQuery selector is really powerful!
I encountered such a problem with easyui in the project
As shown in the picture, the current page displays the "Original Message Query" page, but the left navigation bar was selected at that time. It is "resend message query". How to link the menu on the right and the navigation on the left: click "Original Message Query" on the left, then expand "Reissue Arrival Message" on the right, and select "Original Message Query", "Backstage" Manage" off?
The implementation method is as follows:
1. The "original message query" on the right uses easyui's tabs control. Check the API to know that tabs has an onSelect method. As long as it is in onSelect Just write what you want to do in the method.
2. The trigger event has been found, so how to achieve the desired effect?
The code result of the left navigation bar is as shown above: the outermost layer is easyui's accordion control. There are many panels in the accordion. One panel corresponds to a parent directory in Figure 1 and the subdirectories below it. For example, the module "Reissue Arrival Report". There are two divs in the panel.
The first div is the parent directory, and the second div contains many subdirectories.
First, when the tabs on the right are selected, the corresponding navigation bar on the left is selected. First remove the selected status of all subdirectories, and then let the current subdirectory be selected.