Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8463307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:25:10+00:00 2026-06-10T14:25:10+00:00

I have 11 inputs on a page, some are text inputs, some drop downs.

  • 0

I have 11 inputs on a page, some are text inputs, some drop downs. I would like to validate each one to make sure that it is not blank on the click of a submit button I have at the bottom, and have an appropriate message display specific to each that says “This field is blank”, “this field” being the name of each field depending upon whether it is blank. I’m just wondering if there is a simple way to do it without creating a form and using if statements for each of the 11 fields.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:25:11+00:00Added an answer on June 10, 2026 at 2:25 pm

    If you are just checking that they’re all not empty, the easiest way is to use some sort of loop that goes through each input. If it finds one empty, activate some sort of error message next to it, so that all fields immediately show an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some index.php page.. after download jquery drop down menu,the link text like
I have a page with some elements that are controlled by the user. One
I have many inputs on one page that are dates and I am using
I have one HTML page with one toggle button and some drop down item.
I have an AngularJS page with several form inputs. When the some of the
I have a web page that prompts for user input via DropDownLists in some
I have a page that allows for used input, when the user inputs his/her
I need some help please, I have a PHP page with a drop down
Say you have a xaml page that takes two inputs such as DATE and
We have 5 inputs ( type=text ) on html page /edit_person.php : <input id=name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.