I have a DoJo FilteringSelect created from <select>.
How I can make one (not selected) option as disabled dynamically?
Thanks
UPD: is it possible to REMOVE this element when FilteringSelect was created by PARSE?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like there’s a “disabled” attribute on __SelectOption. When you pass in options, try setting “disabled” to true.
See http://jsfiddle.net/ur87d/
Edit: You said dynamically… So you’ll want to use
updateOptionorremoveOption.See http://jsfiddle.net/ur87d/1/