Arun SS
Arun SS

Reputation: 1911

How to disable autocomplete option in msdropdown

Autocomplete option in new msdropdown version is a cool feature.

But for some reasons, I dont that feature in my msdropdown. So how to disable that option?

I dont want to edit the msdropdown js file, because I may need that feature in some other area of my application. I could not find any option in their documentation.

Upvotes: 3

Views: 884

Answers (2)

tech savy
tech savy

Reputation: 193

Find the dropdown container div class name and hide it

$(".dopdownwrapper_div").hide();

Upvotes: 0

Irvin Dominin
Irvin Dominin

Reputation: 30993

There is no built-in function to disable the autocomplete feature, but you can use css to hide the input element used for the autocomplete.

The autocomplete is an input defined by the plugin as <select id>_titleText so you can use for example:

#payments2_titleText{
    display: none !important;
}

Here is a working fiddle: http://jsfiddle.net/IrvinDominin/9DLjL/

Upvotes: 3

Related Questions