[jQuery] Re: temporarily hide options from a select box

2008-07-08 Thread Toby J

On Jul 7, 7:30 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> It's a known problem with IE. Keeping a cloned copy of the select or
> keeping a list of the removed options (with where they were
> originally) is about the only way to do it.

Thanks for your help Karl, I was afraid of that. I'll modify it to
keep a cloned list.


[jQuery] Re: temporarily hide options from a select box

2008-07-07 Thread Karl Rudd

It's a known problem with IE. Keeping a cloned copy of the select or
keeping a list of the removed options (with where they were
originally) is about the only way to do it.

Karl Rudd

On Tue, Jul 8, 2008 at 7:01 AM, Toby J <[EMAIL PROTECTED]> wrote:
>
> I am trying to build a set of "cascading" select boxes, where the
> selection from one determines which options are available in the next
> (for example if select box "Region" has "North America" selected, then
> select box "Country" should only show countries in North America).
>
> I've found how to remove those items from the list, but if I do that
> then I can't get them back if a new choice is made. If I use .hide()
> and .show(), or .css('display','none') and .css('display','block') on
> the individual items then it works in Firefox but not IE (I'm testing
> in IE7).
>
> Any ideas? I suppose I could .clone() the original select list and
> keep that copy in memory only but that seems like a pain.
>