Thanks to dbzz from the 'Possible changes to show/hide' thread and Dave and John ... here is an updated demo that is a mere 4 lines of added code.
http://brandonaaron.net/jquery/select2/test.html http://brandonaaron.net/jquery/select2/select.js The only issue I see thus far is that Firefox does not respect the selected attribute. -- Brandon Aaron On 10/17/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > I take that back ... I totally missed the point. Checking into that as > a possible solution right now. That should reduce the code by a lot! > > Thanks! > > -- > Brandon Aaron > > On 10/17/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > > On 10/17/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > > > I took a quick look last night but was wondering if it would be much > > > easier > > > to wrap the incoming options/optgroup string in a temporary <select> the > > > way > > > .clean() does for table chunks. I was going to try it myself but ran out > > > of > > > night. > > > > But that would only complicate the issue. The problem is that you > > can't just innerHTML several option tags or optgroup tags to a select. > > This is realized by the non-patched demo. It just appends the whole > > string in one option. You would still have to parse the html, find the > > options and optgroups, create the elements, append them to the select, > > then get the childNodes of the select and return those. This is just > > simply parsing the string of html and sending back the dom nodes to > > append to the original select. > > > > -- > > Brandon Aaron > > > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
