I got a problem. I've tried to do a selectbox using boostrap form helpers.(http://js.nicdn.de/bootstrap/formhelpers/docs/state.html)
So I got a selectbox for "country" and an other for "state"
<select id="countries" class="form-control bfh-countries"></select>
<select id="states" class="form-control bfh-states" data-country="countries"></select>
If I choose a value form the country box the states appears in the states box, so everything ok.
But if I use a script
<button onclick="test()" class="btn">Load Country</button>
function test(){
document.getElementById('countries').value = "AU";
}
Nothing appends on the "states" selectbox, I should get the states of the country selected by the function test() right ?
What can I do to fix this ?
http://jsfiddle.net/xf8ech7k/1/
Thanks in advance