[thelist] JavaScript: Change Class

Casey Crookston casey at thecrookstons.com
Fri Jul 11 16:41:19 CDT 2003


JavaScript question for the list:

I have a form with a simple little javascript toggle to make a selection
unavailable depeneding on the selection.  What I'd like to do is also switch
the class in the last td from BLACK to GREY. (see code below)

Any idears?

Thanks, Casey

<td class='home_text_black'>Completed:</td>
<td><input type='radio' name='active'  value='1'
onClick='form.featured.disabled=true;'></td>

<td class='home_text_black'>Current:</td>
<td class='home_text_BLACK>
     <input type='radio' name='active' value='2' checked
onClick='form.featured.disabled=false;'>
     <input type='checkbox' name='featured' value=''> - Fubar Text
</td>







More information about the thelist mailing list