` element:
```html
```
---
### Attach the events
.breadcrumbs[
jQuery - DOM Manipulation >
Feature : _"Change message alignment"_]
Our three alignment buttons are all children of the same element, which is the `div#align-btns`.
We can thus use this element in our selector to access the buttons:
```js
$("#align-btns button")...
```
> We have seen that this kind of notation can be optimized.
>
> Let's use the second paramter of `$(...)` to retrieve the buttons, and then attach them the event:
```js
$("button", $("#align-btns")).on("click", event => console.log(event.currentTarget));
```
> **"What is this strange behavior?"** you might ask, **"The page is reloaded every time a button is clicked. Why?"**
---
#### Buttons in a form
.breadcrumbs[
jQuery - DOM Manipulation >
Feature : _"Change message alignment"_ >
Attach the events]
If you look closely at the HTML structure in which the `button`s are placed, you'll see that they are placed **inside a form**:
```html
*
```
> By default, buttons inside a `