Show/Hide Text on Button Click

JavaScript Easy 3 views
Back to Questions

Problem Description

You have a button #btn and a text box #box. On click, toggle #box display between block and none.

Input Format

No input.

Output Format

No output (DOM change).

Constraints

Assume HTML has elements with ids btn and box.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next