Hi guys, im new with Chrono and have the next problem. Im trying to connect two Drop-down fields, i mean, if in the first element the value is "Transferencia" should display the second dropdown field. I follow the steps from this tutorial http://www.chronoengine.com/faqs/2657-how-can-i-build-a-combo-box-input.html but i dont get it done 😟 .
Gooogle Chrome says
The code im using is the next
Sorry for my poor english 😶
Gooogle Chrome says
Uncaught TypeError: Cannot read property 'value' null
The code im using is the next
window.addEvent('domready', function() {
var transaccion, emisor;
transaccion = $('seleccione_transaccion');
emisor = $('banco_emisor');
switchEmisor();
transaccion.addEvent('change', switchEmisor);
function switchEmisor() {
if ( transaccion.value == 'Transferencia' ) {
emisor.disabled = false;
} else {
emisor.value = '';
emisor.disabled = true;
}
}
});
Sorry for my poor english 😶