Skip to main content

Toggle a FAQ answerpractice exercise

HTML5andCSS3 logoPRACTICE

Clicking the question should open the answer, and clicking it again should close it. Track the state in the #status text.

Acceptance criteria

  1. 1.Clicking #toggle once should set #status to "Open".
  2. 2.Clicking #toggle a second time should set #status back to "Closed".
  • Northcorp Software
  • Accenture
  • Helpshift
  • Mundrisoft Solutions
  • Nielsen
  • PayPay Corporation
1
0 × 0

Output ready when you are

Press Run to render your code, or Submit to validate your solution.