I have a list called 'entrevistastrimestralespediatria'.
I have a cascadingdropdown (selection list ) called ROTACIONES whos is watching a databasejoin (dropdown too) called 'selecionaresidente'.
I want to trigger the chage event of the dropdown 'selecionaresidente' with javascript and refresh the selection list 'ROTACIONES'.
Ihave tried both ways, with jquery a Mootools but it does not work:
With jQuery:
jQuery('#entrevistastrimestralespediatria___selecionaresidente').val('557').trigger('change');
With Mootools:
var $resiselected = $('entrevistastrimestralespediatria___selecionaresidente');
$resiselected.value = 557;
$resiselected.trigger("change");
Please, help to make it work.
I have a cascadingdropdown (selection list ) called ROTACIONES whos is watching a databasejoin (dropdown too) called 'selecionaresidente'.
I want to trigger the chage event of the dropdown 'selecionaresidente' with javascript and refresh the selection list 'ROTACIONES'.
Ihave tried both ways, with jquery a Mootools but it does not work:
With jQuery:
jQuery('#entrevistastrimestralespediatria___selecionaresidente').val('557').trigger('change');
With Mootools:
var $resiselected = $('entrevistastrimestralespediatria___selecionaresidente');
$resiselected.value = 557;
$resiselected.trigger("change");
Please, help to make it work.