日期:2014-05-16  浏览次数:20369 次

急,高手請進,為什麼radio的onSelect事件不響應?
請問一下,為什麼ration的onSelect事件不發生?,我把onSelect改成onClick可以實現,有沒有別的javascript方法實現radio按鈕控制標簽隱藏。

+++++++++++++++++++++++++++++++++++++++
      <td   height= "25 "   colspan= "3 "   align= "left "   nowrap   class= "write_9 "> <input   name= "app_result "   type= "radio "   value= "1 "   id= "app_result "     checked     onSelect= "doNoView() ">
                            同意    
        <input   name= "app_result "   type= "radio "   value= "0 "   id= "app_result "   onSelect= "doView() ">
    不同意 </td>
    <tr   id= "no_agree ">
                        <td   width= "80 "   height= "20 "   align= "right "   nowrap   > 不同意原因: </td>
                        <td   height= "20 "   colspan= "3 "   align= "left "   >
    <input   name= "refuse_reason "   type= "text "   id= "refuse_reason "   size= "60 "   >  
                        </td>
                    </tr>
                    <tr   id= "no_agree_mail "   >
                        <td   width= "80 "   height= "20 "   align= "right "   nowrap   > 郵件提醒: </td>
                        <td   height= "20 "   colspan= "3 "   align= "left "   > <input   name= "send_to "   type= "text "   id= "send_to "   size= "60 "   >
                            <input   type= "button "   name= "Button "   value= "... "   onClick= "openemail() "   > </td>
                    </tr>
+++++++
function   doView(){
      try{  
      document.getElementById( "no_agree ").style.display= ' ';
              document.getElementById( "no_agree_mail ").style.display= ' ';        
            }catch(e){}
}

function   doNoView(){
      try{
      document.getElementById( "no_agree ").style.display= 'none ';
              document.getElementById( "no_agree_mail ").style.display= 'none ';        
            }catch(e){}