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">

```
That seems awesome. But you can simply use the button tag in html.

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

```

This seems a much easier way to do it.