evanburen (AT) gmail (DOT) com wrote:
Quote:
When my page loads, I check for the existence of a cookie value through
readCookie(). If there is a value present for the cookie, I would like
that to be the default value in function ordering() and that value to
be the SELECTED value in ddlProfileNames. In other words, if there is
no cookie value, then function ordering will default to
ordering("Div1,Div2,Div3,Div4"). If there is a value, then that should
be used in function ordering and as the default value in
ddlProfileNames. Thanks for any help.
If the cookie has a value, loop through all the values in the select
|
and compare
them to the cookie's value. If a match is found, set the selectedIndex
property
to the current value of the loop counter and optionally call
ordering(), passing the currently indexed value as the parameter.
--
S.C.