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
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
2 matches
Mail list logo