Disable Submit for Empty Required

JavaScript Easy 3 views
Back to Questions

Problem Description

You have a form #f with inputs having attribute data-req=1. Disable button #submit until all required inputs have some value (trimmed).

Input Format

No input.

Output Format

No output (DOM change).

Constraints

Assume #f form and #submit button exist. Required inputs have data-req=1.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next