Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
In order to allow it to degrade to a useful table if JavaScript is disabled, I suggest you do this:
Right before the after <body> tag:
HTML Code:
<body>
<script type="text/javascript">
document.body.className="js-enabled";
</script>
Now, in your CSS document, do something like this:
Code:
.js-enabled table.list tr.sel {
display: none;
}
That's it! All your script is doing is changing the inline style of your tr with a class of "sel" to display: none" and then removing any display to make it visible again.
|