Value input not working

Hi everyone! I would really appreciate if someone could offer me some help! I got stuck at the value input challenge. I understood the concept, the value input being the data that the user selected that will therefore be sent, but I can’t figure out why my code is not valid. I’ve got the name, value and type inputs but it still comes up with an error?

Your code so far


<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https://freecatphotoapp.com/submit-cat-photo">
  <label for="indoor">
    <input id="indoor" value="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
  <label for="outdoor"><input id="outdoor" value="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" value="loving"> loving</label>
  <label><input name="personality" value="lazy" type="checkbox"> lazy</label>
  <label><input name="personality" type="checkbox" value="energetic"> energetic</label>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Hi @uxbogdi,

You got me confused for a moment because I had a look at what challenge asked and what you had done without noticing you had changed the code that was already there. :sweat_smile:

You have changed first letters from uppercase to lowercase in three different parts in your code. I would reset your code and simply add value attribute without changing anything else. You should have no problem passing the challenge then :slight_smile:

1 Like

Thanks a lot for your response! Sorry for confusing you haha! I didn’t think it really matters if it’s uppercase or lowercase, but clearly I was wrong! (beginner mistake)
Thanks again for your help! :slight_smile:

@uxbogdi No problem at all, I am grad I could help. I am going through JavaScript at the moment so it is nice to come back and see if I can help with previous parts from time to time :wink:

1 Like