Em Terça 23 Maio 2006 11:35, Rob escreveu:
> Hello,
>
> I need to filter all HTMLOptionElements contained in one
> HTMLSelectElements out of another HTMLSelectElement.
>
> Example:
> - remove OptionElements.value (1, 2, 3) contained in HTMLSelectElement
> A from HTMLSelectElement B
>
> I have a really hard time finding a solution to this problem. Can
> anyone shed some light on a possible MochiKit-like solution?

You can do it the simplest way: loop through both of them and remove from one 
of them what is present in the other.  Of course, having a sorted list is 
better performance-wise for the loop solution.

I haven't checked the docs or googled after something more efficient before 
answering you, though...

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to