I use Codeigniter and bootstrap.
I have 2 select name service and sub-service (both values are in the array) like this:
I'd like to select the service in the first select, on the basis of this select get the related sub-service...
example of arrayOfService (service a, service b, service c) example of
arrayOfSubservice = (
[0] => stdClass Object
(
[nome] => nomine ed incarichi RSPP
[service] => a
)
[1] => stdClass Object
(
[nome] => DVR
[service] => a
)
[2] => stdClass Object
(
[nome] => ART 36 Informazione
[service] => b
)
my goal is if its possibile, select the "service a" in the first select, automatically view in the subservce select ONLY the subservice related to "service a"