Mohan Laal
Mohan Laal

Reputation: 51

Editable dropdown in ASP.NET

I am looking to create a dropdown in which user will be presented with a dropdown and when user selects a value from dropdown, s/he can edit the text of the selected value, any ideas how can I achieve it?

Upvotes: 1

Views: 7047

Answers (1)

Elham
Elham

Reputation: 777

You can use J Query User interface library for that(http://jqueryui.com/demos/autocomplete/):

var list = [
        "To Print",
        "Test"
    ];

$("#RefrenceNo").autocomplete({
        source: list 
    });

<div class="field">
    <label id="RefrenceNo-label">Reference No</label>
    <input id="RefrenceNo" name="RefrenceNo"/>
</div>

Upvotes: 1

Related Questions