Reputation: 51
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
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