$(".AL_dangerLBTN").click(function(){
var sum = $(this).parents(".AL_dangerBOX").attr("id");
if(sum == "notice_p01"){
$(this).parents(".AL_dangerBOX").show();
$("#notice_p01").show();
}else{
$(this).parents(".AL_dangerBOX").hide();
$(this).parents(".AL_dangerBOX").prev(".AL_dangerBOX").show();
}
});
var sum = $(this).parents(".AL_dangerBOX").attr("id");
if(sum == "notice_p01"){
$(this).parents(".AL_dangerBOX").show();
$("#notice_p01").show();
}else{
$(this).parents(".AL_dangerBOX").hide();
$(this).parents(".AL_dangerBOX").prev(".AL_dangerBOX").show();
}
});
本文介绍了一个使用jQuery实现的危险框切换功能,通过点击按钮可以显示或隐藏警告框,并在多个警告框间进行切换。此功能适用于需要用户确认操作的重要提示场景。
1385

被折叠的 条评论
为什么被折叠?



