Fill in other inputs

hello, i have select2 which brings results from the database through json and working fine. But I would like to bring other columns from the database and fill in the form inputs, would it be possible?

Don’t use the built-in ajax update functionality. Use on(‘change’,(or whichever trigger you want) then make your own ajax call, bring back whatever data you need including any updates to your select2 control.

https://select2.org/programmatic-control/add-select-clear-items

1 Like