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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:28:48+00:00 2026-05-26T10:28:48+00:00

From the submit button’s onClick, I am displaying a validation error in a DIV

  • 0

From the submit button’s onClick, I am displaying a validation error in a DIV with:

msgStr = validate(...);
document.getElementById("msgArea").innerHTML = msgStr;

But if the user clicks submit again (possibly changing the data but getting the same validation error), there is no feedback to them that the submit actually did anything. The page sits there “frozen” (to the user).

I tried to clear the area before calling validation with:

document.getElementById("msgArea").innerHTML = '';
msgStr = validate();
document.getElementById("msgArea").innerHTML = msgStr;

but this doesn’t show any effect. I assume that either the browser doesn’t have time to update the rendering before the same msgStr is set, or it happens so quickly that the user doesn’t see the “flash”.

Any suggestions on how to provide feedback in this case?

  • 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-05-26T10:28:49+00:00Added an answer on May 26, 2026 at 10:28 am

    It’s most likely that you don’t see it change because the flash is too fast. If you’re using a javascript library (jquery, yui, etc…), you can use a fade in function to make it more noticeable. If not, you can use a series of timers and style changes to make the change more noticeable. Here’s a fiddle that demonstrates how to do that: http://jsfiddle.net/cbargren/S6ZjC/

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

Sidebar

Related Questions

How can I remove focus from submit button? I don't know why it is
Guys I've HTML file that Consists of 2 DIV tags and a Submit Button,Looks
Ive removed the background and border from a submit button so its styled as
I keep wondering why did facebook use like submit from button and not just
I'm looking for a script to prevent the user from hitting the submit button
I am trying to prevent users from double clicking on the submit button for
I'am sending a complaint to server after clicking on submit button from my activity
The Submit button on this form does nothing unless I remove style=display:none from the
I created login from that when clicking submit button sends variables to login_success.php page.but
Is it acceptable to submit from an http form through https? It seems like

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.