# Learn Form Validation by Building a Calorie Counter - Step 11

**URL:** <https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [February 5, 2024, 2:05am UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854 "2024-02-05T02:05:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljoyclifford](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@ljoyclifford](https://forum.freecodecamp.org/u/ljoyclifford)\
**Post date:** [February 5, 2024, 2:05am UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854/1 "2024-02-05T02:05:42Z")

</div>

Hello! I feel that this should be simple, but my code is not passing. Any suggestions? Thanks 🙂

 ![button question](https://global.discourse-cdn.com/freecodecamp/original/4X/9/e/d/9ed9a39b4b21e74fd5c1db0d4eb8ff7ad59fa693.jpeg)

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [February 5, 2024, 2:50am UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854/2 "2024-02-05T02:50:35Z")

</div>

Please write your code directly into the forum so it it will be easier for us to help you

also, please provide the link to the challenge

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [February 5, 2024, 2:51am UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854/3 "2024-02-05T02:51:31Z")

</div>

At first glance, it looks like the type submit should be for the first button.

The directions also want you to add an id of clear to the second button and a type attribute

hope that helps

---

<div class="post-metadata">

**Author:** ![ljoyclifford](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@ljoyclifford](https://forum.freecodecamp.org/u/ljoyclifford)\
**Post date:** [February 9, 2024, 11:11pm UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854/4 "2024-02-09T23:11:35Z")

</div>

Yes! Thank you so much for your help 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 10, 2024, 11:11am UTC](https://forum.freecodecamp.org/t/learn-form-validation-by-building-a-calorie-counter-step-11/669854/5 "2024-08-10T11:11:36Z")

</div>

Closed on August 10, 2024, 11:11am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
