0

link texthi, i am using jQuery checkbox drop down control. i am able to bind the values to listbox and show the values .

i need to make certain items in my listbox[checkbox drop down control] non selectable. i am refering this website

http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html

i am using the JQuery plugin in to achive this . i am able to fix the height of the control all these things are possiable. i have an datatable with items

karnataka
tamilnaidu
kerla
------
delhi
mumbai
chennai
------
abc
poasda
sewqwq
qwewqe
------

so now if user tries to select the"------" values it should not get selected

any help would be great

thank you

1 Answer 1

1

Have you tried adding to these options the disabled attribute ?

<option value="..whatever.." disabled="disabled">------</option>
Sign up to request clarification or add additional context in comments.

3 Comments

in listbox control u dnt have this option <option value="..whatever.." disabled="disabled">------</option>
i am using list box control and an datatable whose vaues are comimg from database
@prince23 aren't you using the select tag ? All the examples at the url you gave use the <select> tag to define the list.. and the select tag uses a list of <option> tags as the elements..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.