Question: I have two groups; group A and group B. If a user is part of group B, then I want to remove them from group A. This is because the groups are mutually exclusive. 

I have found some scripts that will remove the user from a group, but not on the condition of the user being part of another group.

Can someone help?

Answer: 
Replace type `button` with `submit`

```
<input type="submit" class="button" value="Search">

```
For those who arrived here wondering why the `button` element is not submitting their form, note: The button element works *identically* to `input type="submit"`, but *only* if you include the `type="submit"` attribute on it. 

This will submit your form:

`<button type="submit">Go</button>`

This will not:

`<button type="button">Go</button>`