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 8179499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:00:50+00:00 2026-06-07T00:00:50+00:00

I am having a stupid issue with a form. I have always used the

  • 0

I am having a stupid issue with a form. I have always used the ‘required’ attribute in an input box for quick validation, but now for some reason when I am using a button instead, the validation is not running? Does it just not work with a button or am i doing something wrong? Something that could be causing issues, is that the the required fields are sometimes readonly. Is there maybe a conflict? Below is some example code:

This would be my input box:

<input type='text' id='something' name='something' required />

and this would be my submit:

<input type='submit' value='Submit' />

But now I am trying to use this:

<button type='submit'>Submit</button>

Thanks in advance. Any help would really be appreciated.

  • 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-07T00:00:51+00:00Added an answer on June 7, 2026 at 12:00 am

    For anyone experiencing the same issue, you cannot have required and readonly in an input field. Just try do without or maybe use some JavaScript to help out.

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

Sidebar

Related Questions

Im having a weird issue here. Its probably just something stupid but I dont
Having used storyboards for a while now I have found them extremely useful however,
Probably I'm being stupid and overlooking something, but I am having a bizarre issue
i have a bit of stupid question, but i'm really having trouble with it.
Might seem like a stupid question, but I'm having an issue creating an array
Maybe its a stupid question, but i'm having this issue in Visual Studio 2010:
I have a feeling I'm asking a stupid question here. I'm having trouble retrieving
I feel a little stupid for having to ask this… But I can't seem
I'm having a stupid css issue I can't seem to figure out. Here is
No doubt I'm doing something stupid, but I've been having problems running a simple

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.