Hi,
i know how to get the selected value of a select box – on change – using “$('select#cu\.STID option:selected').val()”, but i'm stuck on how to get the default value specified in “editoptions:{dataUrl:'php/state-se-script.php', defaultValue:'26', ” after the add form is finished loading.
I have another select box on the add form that needs to display one set of options or another based on the default value of the first select box. Having that happen “on change” is no problem, i was just hoping i could find a way to do it on or after the form load.
My only other option is to make the user select another option in the select box to force an “on change” event in order to fill the other select box with the correct options.
thanks.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top