Trigger change event of watched dropdown

fleblic

New Member
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.
 
Code:
document.id('entrevistastrimestralespediatria___selecionaresidente').fireEvent('change', new Event.Mock(document.id('entrevistastrimestralespediatria___selecionaresidente'), 'change'))

-- hugh
 
One more question about this.

How can I know when is this fired procees of 'change event' fied completed? Does not work with 'Onload' javascript function of the cascadingdropdown (selection list ) ROTACIONES.

Thanks
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top