--- id: 5ddb965c65d27e1512d44d9b title: Step 2 challengeType: 0 dashedName: step-2 --- # --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`. # --hints-- See description above for instructions. ```js assert( code .replace(/\s/g, '') .match(/document\.getElementById\([\'\"\`]calorie\-form[\'\"\`]\)/) ); ``` # --seed-- ## --before-user-code-- ```html

Calorie Counter

Sex
Breakfast
Lunch
Dinner
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```