首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JS 应用Jquery为<a>设置href

2012-10-11 
JS 使用Jquery为a设置href$(function(){$(#chkAll).click(function(){if($(this).attr(checked)tr

JS 使用Jquery为<a>设置href



$(function(){        $("#chkAll").click(function(){            if($(this).attr("checked")==true){                $("input[name='check']").each(function(){                    $(this).attr("checked",true);                });            }else{$("input[name='check']").each(function(){           $(this).attr("checked",false);        });}        });   });   

热点排行