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)
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
Post a Comment