一花一世界,一叶一菩提
一吃一大碗,一睡一整天
一 、点击弹出提示框
$(".del a").click(function(){
return confirm('您确定要删除吗?');
});
$(".xiugai a").click(function(){
return confirm('您确定要修改吗?');
});
效果图:
二 、点击改变多个中某个元素其他元素恢复原状:
$(".color").click(function(){
$(this).css("border-color","red");
$(this).siblings().css("border-color","#fff");
})
三 、点击刷新页面:
$('.cancel').click(function(){
location.href='index.php';
})