I have a list like this:When I click a radio button, I want the text to "dim", that is, change color.Code:<tr> <td>Some Text One</td> </tr> <tr> <td>Some Text One</td> </tr> <tr> <td>Some Text One</td> </tr>
So I have two CSS classes, on and off.
Here's the JSBut, this does not work. What am I doing wrong???PHP Code:function enableCFFID()
{
document.cartform.cffid.disabled=false;
document.getElementsName('cffidtext').class="cffidon";
}
function disableCFFID()
{
document.cartform.cffid.disabled=true;
document.getElementsByName('cffidtext').class="cffidoff";
}



Reply With Quote


Bookmarks