Re: [jQuery] Re: simple jquery question

2010-01-05 Thread John Arrowwood
But if this code will get executed more than once (e.g. in response to user actions), make sure you prefix it with code to remove all of the existing options in the dropdown, otherwise it will be additive. On Mon, Jan 4, 2010 at 5:23 AM, Karl Swedberg k...@englishrules.com wrote: this solution

Re: [jQuery] Re: simple jquery question

2010-01-04 Thread Karl Swedberg
this solution could be simplified a bit: $('h3.example').each(function() { $('#deptFilter').append( 'option' + $(this).html() + '/option' ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 3, 2010, at 6:53 AM, Paul Hutson wrote: This will do