---
title: "Be add the value in dropdown list"  
description: "Be add the value in dropdown list"  
author: "Anonymous User"  
published: 2011-01-29  
updated: 2011-05-20  
canonical: https://www.mindstick.com/forum/159/be-add-the-value-in-dropdown-list  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# Be add the value in dropdown list

I want to [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in [dropdown list](https://www.mindstick.com/forum/760/dropdown-list-open-hide-behind-another-dropdown-list-on-ie-7) by using [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) in jquery\
give the syntax in jquery ![Be add the value in dropdown list](https://www.mindstick.com/app_images/htmleditor.icons/eusa_wall.gif)

## Replies

### Reply by Anonymous User

Hi...

Use following code snippet to add value in [dropdown](https://www.mindstick.com/articles/263/ajax-toolkit-dropdownextender-in-asp-dot-net) list using jquery

```
function addCombo() {var optName = $("#other").attr("value");
    $('#category').append("<option value='"+ optName + "'>" + optName  + "</option>");
    $("#other").attr("value", "");}
```

Here other is id of drop down list


---

Original Source: https://www.mindstick.com/forum/159/be-add-the-value-in-dropdown-list

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
