动态控制一个控件的class


<style>   
  .input1   
{color:red}   
  .input2   
{color:blue}   
  
</style>   
    
  
<tr>   
  
<input   type="radio"   value="1"   name="send_order"     
    
  onclick
="words.className='input1'">是   
  
<input   type="radio"   value="0"   name="send_order"     
    
  onclick
="words.className='input2'">否   
  
</tr>   
  
<tr>   
  
<input   type="text"   size="45"   class="input2"   name="words">   
  
</tr>   

posted on 2008-10-07 13:23  lwl0606  阅读(138)  评论(0编辑  收藏  举报

导航

我要啦免费统计