The jQuery $ "function" returns a "wrapper" type object, which acts like an array, even if there's only one object in it.
So you can do: sel = $('#product_id_01'); sel[0].options.length = 0; Karl Rudd On Nov 26, 2007 6:33 AM, kitsched <[EMAIL PROTECTED]> wrote: > > I was trying to populate a select's options when I noticed that I can > use: > > sel = document.getElementById('product_id_01'); > sel.options.length = 0; > > but I can't use: > > sel = $('#product_id_01'); > sel.options.length = 0; > > If anyone could provide a short explanation I'd be really grateful. > > Thank you. >