This is my code:

```
$(document).ready(function() {
    if ($(".box1").next().is(".box2")) {
        $(this).css("margin", "0"); 
}
});

```

My `.box1` div has a style of `margin: 50px`.

To summarize, what I want: If a `.box2` div appears after a `.box1` div, then my `.box1` div now has a margin of 0px. I have 10 `.box1` divs and not all `.box1` divs have a `.box2` div appearing after them. I only want the `.box1` divs with a `.box2` div appearing after them to have `margin:0px`. I don't know how to achieve this with my current code using the $(this) keyword. Please help, thank you