--- id: 5ddb965c65d27e1512d44d9b title: Part 02 challengeType: 0 isBeta: true --- ## Description
In our HTML document, we have a form element with an `id` attribute: `
` To reference and access this particular form in JavaScript, we can use the getElementById() method on the document and provide the ID. The code `document.getElementById('my-form')` gets a reference to an HTML element with an `id` of `my-form`. Get a reference to the HTML element with the `id` of `calorie-form`.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert( code.replace(/\s/g, '').match(/document\.getElementById\([\'\"\`]calorie\-form[\'\"\`]\)/) ); ```
## Challenge Seed
```html ```
### Before Test
```html

Calorie Counter

Sex
Breakfast
Lunch
Dinner
```
### After Test
```html ```
## Solution
```html ```