<table  id="approveTable">
                    <tr>
                       <td>
                        <input  type="radio"   name="action"  value="1"  checked="checked"   onclick='$("#selectRow").css("visibility","visible");'/>成功
                        </td>
                        <td>
                        <input  type="radio"   name="action"   value="0"  onclick='$("#selectRow").css("visibility","hidden");'/>失败
                        </td>
                    </tr>
</table>

这种方式checked是起作用,但如果不把控件包在td中就不起作用了,如下:

 <table  id="approveTable">
                    <tr>
                       
                        <input  type="radio"   name="action"  value="1"  checked="checked"   onclick='$("#selectRow").css("visibility","visible");'/>成功
                        
                        <input  type="radio"   name="action"   value="0"  onclick='$("#selectRow").css("visibility","hidden");'/>失败
                        
                    </tr>
</table>

 

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2022-01-29
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2021-10-22
  • 2021-08-05
  • 2021-10-11
  • 2021-08-09
相关资源
相似解决方案