danielfarrell / bootstrap-combobox

A combobox plugin that works with twitter bootstrap
847 stars 327 forks source link

How to disable combobox? #238

Closed pratikthakare777 closed 7 years ago

pratikthakare777 commented 7 years ago

How to disable combobox? I am using html disabled attribute still data is populating from dropdown. I do not want to populate data. I need complete disable combobox nothing can populate or select able.

Please help me if there is any option present in bootstrap-combobox. Thanks For this amazing bootstrap-combobox.

<select class="combobox"  disabled >
  <option></option>
  <option value="PA">Pennsylvania</option>
  <option value="CT">Connecticut</option>
  <option value="NY">New York</option>
  <option value="MD">Maryland</option>
  <option value="VA">Virginia</option>
</select>
vanikin commented 7 years ago

$('#element').data('combobox').disable() You can enable it same way

james-poulose commented 3 years ago

Is it possible to disable selected options?

tiesont commented 3 years ago

@james-poulose Not sure what you mean - can you elaborate, please? Better yet, create a new issue, since it sounds like you're asking something that isn't entirely related to this issue, which is closed.