return false; } }); $(".close").click(function(){ $(this).parent().parent().parent().hide(); location.reload(); }); function find_vip(a) { var _class = $(".customer_new").attr('class'); if(_class.indexOf("cur")==-1) { $(".customer_new").addClass("cur"); } else { $(".customer_new").removeClass("cur"); } }