array-associativo

Associative array State and City Combobox in Javascript

I'm trying to assemble this associative array, in the case of combobox for the state of São Paulo, it has to show 5 cities of ... the empty field 5 times, I took it from inside the for it repeats once but still yes empty. Since now I appreciate any help.

Display associative array elements with foreach

Hello, guys. I would like to display the elements of an associative array as follows: Nome: José Idade: 32 Profissão: Médic ... w if it is possible and how can I do to display the indexes and their values of the array as I showed. Right now, thank you.