Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable the combobox ? #57

Closed
alani1 opened this issue Mar 23, 2013 · 4 comments
Closed

How to disable the combobox ? #57

alani1 opened this issue Mar 23, 2013 · 4 comments

Comments

@alani1
Copy link

alani1 commented Mar 23, 2013

Hi Daniel,

Thanks for that beautiful component ! My combobox markup after .combobox() looks like this :

<div class="combobox-container combobox-selected">
<input type="hidden" name="entrySignal" value="Long">
<input type="text" autocomplete="off" placeholder="">
<span class="add-on btn dropdown-toggle" data-dropdown="dropdown">
   ...
</span>
</div>

What is the simplest way to disable the complete combobox later e.g. based on a value entered in another formfield ?

I expected somehow with the following selector all elements would be disabled :

$("div.combobox-container *").attr('disabled', "disabled");

any ideas ?

thx,

Alain

@alani1
Copy link
Author

alani1 commented Mar 23, 2013

Sorry,

The used select actually works. Issue was that .combobox() was executed after the selector due to a delayed AJAX request.

@alani1 alani1 closed this as completed Mar 23, 2013
@cristiandreica
Copy link

Is there a way to disable the button as well, not just the input? Even if the user can't type, he can still select another element from the combobox.

@danielfarrell
Copy link
Owner

I don't think there is at the moment. It's not a bad feature, but it's been outside of my use case. I'll gladly accept a well done pull request for it though.

@cristiandreica
Copy link

Here it goes: #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants