Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140762

Bootstrap thymeleaf dynamic select list

$
0
0

I'm writing an application using spring boot + thymeleaf + bootstrap. The application is a typical CRUD: - the user of the application has his clients - every customer has their devices and locations

I wonder how to implement a dynamic select list (on the device adding form). I would like to have a list of all clients after expanding the Company list. However, after selecting a specific customer, on the list of locations I would like to see only locations assigned to a given customer.

I have in the endpoint / customers application returning a list of all clients, I can also do endpoint / localizations receiving a client id in the requestbody and returning the list of locations. I might as well share rest api to return these lists.

What solution do you recommend? My guess is that you can't get it without js that I don't know.

company1

company2


Viewing all articles
Browse latest Browse all 140762

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>