asp.net - Hide Checkbox Icon for a ListItem in checkboxlist -


is there way hide checkbox icon listitem , display value-text.

like below - checkbox items hidden.

i figure out disable (grey-out) or hide (invisible) list item not hide checkbox icon (square)

items list item checkbox hidden

i did part of project , accomplished via setting attribute when creating listitem , using css style it.

li.attributes.add("id", "removecheckbox"); 

since attribute added part of tag, can use following descriptor in css.

#removecheckbox {     color: gray; } #removecheckbox input {     display: none; } 

of course, can format css way you'd like, should started. if you'd more information using selectors in css, check out this reference w3.org.

hth!


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -