$('select#parent').trigger('cascade'); ?
On Nov 9, 5:08 pm, rmachado <rmachado...@gmail.com> wrote: > Hello to all > > I using thecascadeplugin in 3 dropdowns and it works fine, but in > some ocasions I need to pre selected the values because the user is > editing the previous recorded selections. > > I manage to selected the value of the first dropdown with the > following code: > $('#chained [value=1').attr('selected','selected').parent().change(); > > but how can I selected the second one and the third? > > I tried this: > <script type="text/javascript"> > function startDrops() { > $('#chained [value=1]').attr('selected','selected').parent().change > (); > $('#chained_child [value=3]').attr('selected','selected').parent > ().change(); > } > > </script> > ... > <body onload="Javascript:startDrops();"> > > But it didn't work.. > > How can I do it? > > Thanks