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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:23:36+00:00 2026-05-18T02:23:36+00:00

I have an extremely basic example of this here . To replicate, try submitting

  • 0

I have an extremely basic example of this here. To replicate, try submitting the form, it will then alert you that the field is required. Then fill in some text, then erase all the text. You will see the error message jump down to the next line.

After inspecting with Firebug it shows that the plugin is adding style="display: block" inline on the element. How can I prevent any inline styles from being generated on the element? I know you can modify the .error class fro style, however the inline style it applies obviously trumps the applied class.

  • 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-18T02:23:36+00:00Added an answer on May 18, 2026 at 2:23 am

    Adding style="display: block" via JavaScript is the only way to dynamically show and hide elements at run time. This is not really so bad as most inline styles. It’s the same thing that happens when you call $("#myElement").show() in normal jQuery.

    Edit: to follow up on getting the behavior you want, I went and edited your jsBin; if I did it right, the new version should be here.

    It became clear that the problem was that the behavior of this.defaultShowErrors() was to use jQuery’s .show() method on the error list, which (as discussed above and in the comments) in this case will set an inline display: block style. Since we want display: inline, we need to modify showErrors like so:

    showErrors: function (errorMap, errorList) {
        this.defaultShowErrors();
        $.each(errorList, function (i, error) {
            $(error.element).css("display", "inline");
        });
    }
    

    This way, whenever the errors are hidden, then shown again, our custom showErrors function will trigger. They’ll get set to display: block momentarily by this.defaultShowErrors(), but then we’ll fix that and set them to display: inline.

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

Sidebar

Related Questions

This feels like an extremely n00b question, but here goes... I have a series
I have some extremely weird behavior that seems to result in silent exceptions. How
I have an extremely strange bug. I have two applications that communicate over TCP/IP.
I have found this example on StackOverflow: var people = new List<Person> { new
Why is this extremely basic JavaScript array giving me a length of 13 when
I have an extremely simple unit test. I'm not sure why it fails when
Have you managed to get Aptana Studio debugging to work? I tried following this,
Extremely basic question. Are there common actions I can perform using keyboard shortcuts in
I have this project i'm working on and id like to add a really
I created a calculator class that does basic +,-, %, * and sin, cos,

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.