[jQuery] Re: Show / hide options based on class

2007-07-12 Thread Marc Jansen
Michael Price schrieb: Hi all, I've got two select boxes side by side - initially the right hand side box has ALL options in it - and the left hand box can be used to filter the options displayed. Probably not the best way to do it (in fact, defintiely - it doesn't work in IE) but the

[jQuery] Re: Show / hide options based on class

2007-07-12 Thread Michael Price
Marc Jansen wrote: var $possibleOptsRight; $( document ).ready(function() { $possibleOptsRight = $('#rightselectlist option'); $( '#leftselectlist' ).bind('change', function() { $('#rightselectlist') .children().remove().end() .append( $possibleOptsRight ).children()