Home >
Web Front-end >
JS Tutorial >
JavaScript Ajax Json realizes the linkage effect of upper and lower drop-down boxes example code_javascript skills
JavaScript Ajax Json realizes the linkage effect of upper and lower drop-down boxes example code_javascript skills
WBOY
Release: 2016-05-16 17:12:56
Original
1487 people have browsed it
I recently tried to create a drop-down box linkage function between departments and personnel. The corresponding relationship between departments and personnel is 1:N
The data returned here contains a list (see list below). The list contains two attributes: the person's code and the person's name. Then empty() the personnel drop-down box first, and add a new drop-down box element through the select control append method.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn