# Add an item dynamically to a select box

**URL:** <https://www.ruby-forum.com/t/add-an-item-dynamically-to-a-select-box/112027>\
**Category:** Rails\
**Created:** [August 14, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/add-an-item-dynamically-to-a-select-box/112027 "2007-08-14T12:34:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_Jacquemin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/838e76/32.png) [@Denis\_Jacquemin](https://www.ruby-forum.com/u/Denis_Jacquemin)\
**Post date:** [August 14, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/add-an-item-dynamically-to-a-select-box/112027/1 "2007-08-14T12:34:30Z")

</div>

Hi there,

Anyone knows how to implement the same feature as the ‘category’ field  
in the ‘basecamp \> messages’ screen.

Click to the last option (‘add a new category’)  
and then you just have to enter the new category label in the  
javascript box.

Wonderful…

…but how is it done?
