var blockLength=0; $("#divadd"+blockLength).click(function(){ if(blockLength < 5){ $(".muiltiRouteClass"+blockLength).attr("style",""); $("#divminus"+blockLength).show(); if(blockLength == 5){$("#divadd"+blockLength).css("visibility","hidden");} if(blockLength == 2){$("#divminus"+blockLength).css("display","none");} } blockLength++; });如上面代码,最开始的按钮id是divadd2, 点击之后,将隐藏的divadd3显示出来。这时候blockLength++ 按钮的id是divadd3,请问点击之后,怎么重新给点击的按钮赋新的id。在线等,谢谢
添加回答
举报
0/150
提交
取消