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

  • Home
  • SEARCH
  • 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 8805059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:45:56+00:00 2026-06-14T01:45:56+00:00

The back end dev for our site has a div.errors for form handling, it

  • 0

The back end dev for our site has a div.errors for form handling, it is always present but empty unless there is an error in form submission. Its easy enough initially hide the div and then to check if it has length, if it does display it.

if ($(".errors").text().trim().length) {
    $(this).css('display', 'block');
}

The issue is this, on page load the div.errors is empty and hidden. when you submit the form, with an error the div.erros then has length, but the page is refreshed (loaded again) and the event does not fire again. Is .live a viable option?

  • 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-14T01:45:58+00:00Added an answer on June 14, 2026 at 1:45 am

    The problem is that this stops referring to the element:

    $(".errors").each(function () {
        if ($(this).text().trim().length) {
            $(this).css('display', 'block');
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our application uses a SQL Server back-end with many stored procedures. Recently, while trying
I'm working on our back-end encoder service which does an awful lot of video
The app my colleagues and I maintain has an Oracle database at the back-end.
Back-end: I have a model (User) that has_many of another model (ContactPreference). Front-end: An
The back-end admin interface informs me that there is a new security patch for
I am developing a back-end that process about 500 invoices a day. I have
I'm developing a back-end application for a search system. The search system copies files
I have a SQL Server Database back-end. I want an internal network front-end UI,
I'm trying to change the back end post listing template for a custom post
Having an MS-ACCESS front-end and a MYSQL back-end, what methods are available to distribute

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.