zoukankan      html  css  js  c++  java
  • 多选ui实现单选效果

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <script src="js/jquery-1.8.3.min.js" type="text/javascript" language="javascript"></script> 
    <title>无标题文档</title> 
    <script type="text/javascript"> 
    $(function(){ 
    $(":checkbox").click(function(){ 
    if($(this).attr("checked")!=undefined) 

    $(this).siblings().attr("checked",false); 
    $(this).attr("checked",true); 

    }); 
    }); 
    </script> 
    <style> 
    span,input{float:left;} 
    input{ 14px; height:14px;} 
    span{ margin-right:20px;} 
    </style> 
    </head> 

  • 相关阅读:
    ListCtrl中垂直滚动条自动滚动
    auth组件
    母版的继承
    mysql数据备份和恢复
    部署MHA
    安装mysql
    yum源优化
    存储过程
    redis哨兵、集群
    redis主从同步
  • 原文地址:https://www.cnblogs.com/wrong930803/p/7249305.html
Copyright © 2011-2022 走看看