Input type checkbox not working properly.


<body>
    <form>
      <div>
        <input
          type="checkbox"
          name="mailing-list"
          id="mailing-list"
          value="no"
        />
      </div>
 
      <div>
        <input type="submit" value="SUBMIT" />
      </div>
    </form>
  </body>

Initial value of checkbox is “no”, I click in checkbox and submit, I’m still getting no.

http://127.0.0.1:5500/form1.html?mailing-list=no

How to fix this issue?

Which lesson is this from?