Home > Back-end >  Seek advice secondary linkage for dynamic data
Seek advice secondary linkage for dynamic data

Time:09-18

Demand is according to the different course, choose a different teacher
To choose the courses, and then control layer according to the course ID of the corresponding teacher, display to select the second, but I failed, if course ID is not to the back end,
Guide for bosses

CodePudding user response:

To your second figure package as a func, on course drop-down box to join the onchange event, trigger is func, to choose courses

CodePudding user response:

reference 1st floor asd105574 response:
wrapped your second figure into a func, on course drop-down box to join the onchange event, trigger is func, to select courses

I didn't quite understand, can direct messages

CodePudding user response:

Optional course first, then choose the teacher
First choose course refers to the users listed in the drop-down list box, select the courses, and, these courses in the page load time should call interface to,
When the user use the drop-down list box selected a course, to be listed course corresponds to the teacher,
In other words, the teacher data acquisition, is needs to be done when the user selected courses, rather than when the page is loaded,
Drop-down list box, then, should according to course of action (select) binding function, the function call interface to the teacher in the list,
  • Related