preface

Every time you encounter a problem, write it down after you solve it. Can you become a big guy in the future? Ha ha

background

According to the drop-down list, when an item is selected, other data corresponding to the item is displayed in the input box

Above:

Data structure:

My code:

Afterword.

If you have a better way to write, please be sure to leave your code, thanks