Cascade Plugin - Load or Set Initial Value On Trigger
Hello,
I am using the Cascade plugin (
http://plugins.jquery.com/project/cascade). I have been searching for a while and haven't found a solution to this yet. I am trying to set the initial selected option when the page loads.
My code:
- jQuery(document).ready(function()
- {
- jQuery("#child1").cascade("#parent1",{
- list: items,
- template: commonTemplate,
- match: commonMatch
- });
- jQuery("#child1").trigger("cascade");
- });
Is there a second parameter I can pass to the trigger with the option value I want to be selected? Something like:
- jQuery("#child1").trigger("cascade", "508");
If not, how can I accomplish this? Thank you very much for your time!