please first see this URL:
http://146.255.185.182/~traductores/design2/index.php?option=com_chronoforms5&chronoform=pedido_online_traduccion&lang=es
Inside this form i get data from table db inside dropdown list: value = ID (table), text = column "idioma" in DB.
I need get data array depend value dropdown and pass in to hidden fields. Example:
I select: "Alemán" value dropdown is 31 (id table) then i need get array [0] (from Model "ReadIdiomas") and pass values inside fields:
precio_delespañol_oculto (hidden field) value = ReadIdiomas[0][delespanol] => 0,12
precio_alespañol_oculto (hidden field) value = ReadIdiomas[0][alespanol] => 0,10
precio_minimo_oculto (hidden field) value = ReadIdiomas[0][preciominimo] => 37
later, with this values i need to make operation matematical on submit but I think this can do the fields are filled of data.
i have javascrip load (for field test)
window.addEvent('domready', function() {
$('Idioma_Origen').addEvent('change', function(){
var mytexts = $('Idioma_Origen').get('value');;
$('seleccion').set('value', mytexts);
});
});
For pass value dropdown in a field text test... but not how to access data in javascript.
Not if I could explain it clearly. It is very difficult not knowing English.
postData:
I see many examples in this forum, or tutorials, but but I have not managed to adapt to my specific need
If u need admin pass send me a email private for this.
TVM!!
Javierp.