Hi,
i have a strange problem with my form.
I have more dropdown, the first populated from database. If i want to get text value through JS code, i do:[pre]var el = document.getElementById('categoria');
var categoria= el.options[el.selectedIndex].innerHTML;[/pre]
and it works, because the html code is:
The logic of the dropdown works, but if I go to getthe dropdown value through JS it does not work, I always recover the id and not text. The reason is that the dropdown html is as follows:
The link is:
http://www.condominiosereno.it/index.php?option=com_chronoforms6&chronoform=form-fornitore-copy
and the dropdown field is : Comune
In Read Data, i have correctly, as fields to retrieve,
Data.idProvincia ->key[br]Data.nomeComune -> value
Thanks and regards
Daniele
i have a strange problem with my form.
I have more dropdown, the first populated from database. If i want to get text value through JS code, i do:[pre]var el = document.getElementById('categoria');
var categoria= el.options[el.selectedIndex].innerHTML;[/pre]
and it works, because the html code is:
<option value="35">Acquisti di Gruppo</option>My second dropdown is similar to the Dynamic Dropdown example (ie a dropdown that populates a second dropdown)
The logic of the dropdown works, but if I go to getthe dropdown value through JS it does not work, I always recover the id and not text. The reason is that the dropdown html is as follows:
<option value = "64" class = "addition"> 64 </ option>How can is possible?
The link is:
http://www.condominiosereno.it/index.php?option=com_chronoforms6&chronoform=form-fornitore-copy
and the dropdown field is : Comune
In Read Data, i have correctly, as fields to retrieve,
Data.idProvincia ->key[br]Data.nomeComune -> value
Thanks and regards
Daniele