Skip to content

Add client-side validation for city/state/country inputs#268

Open
Muskankr wants to merge 1 commit into
thetechguardians:mainfrom
Muskankr:fix/form-validation
Open

Add client-side validation for city/state/country inputs#268
Muskankr wants to merge 1 commit into
thetechguardians:mainfrom
Muskankr:fix/form-validation

Conversation

@Muskankr

Copy link
Copy Markdown

Fixes #262

Changes:

  • Added required attributes to city/state/country fields.
  • Implemented regex validation in script.js for letters only.
  • Inline error messages displayed in formErrors div.
  • Styled invalid inputs and error messages in style.css.

Result:
Users now see clear inline validation errors before submitting, preventing empty or malformed inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No client-side validation on city/state/country input fields

1 participant