# Update a dropdown

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-a-dropdown%2F65361%3E%5C
**Category:** 🔒 Gradio\
**Created:** [December 11, 2023, 1:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-a-dropdown%2F65361 "2023-12-11T13:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/archan/32/28312_2.png) [@Archan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FArchan)%5C
**Post date:** [December 11, 2023, 1:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-a-dropdown%2F65361%2F1 "2023-12-11T13:14:20Z")

</div>

Hi guys I am trying to design a gradio app where I want to update a dropdown after a button click.

But its not working for some reason

```auto
with gr.Blocks() as demo:
  with gr.Row(equal_height=True):
    name = gr.Textbox(label=" ID")
    options = gr.Dropdown([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], label="Number of Documents to Fetch")
  fetch_btn = gr.Button(" Papers")

  fetch_btn.click(fn=doc_load, inputs=[name, options], outputs=titles, api_name="fetch")
  choice = gr.Dropdown(titles, label="Titles").change

```
