Yes, you could do it with CSS - each list item has a unique ID. However I just assumed that dfewl was looking for the capability of dynamically hiding an option. That is, if something happens,
then hide the option.
So the code would really be something like:
| Code: |
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
function hideOption(qID, optNum) {
var index = optNum - 1;
$('#question' + qID + ' td.answer li:eq(' + index + ')').hide();
}
if (somecondition) {
hideOption(QQ, NN);
}
});
</script>
|