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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:21:45+00:00 2026-05-26T16:21:45+00:00

Is it possible in Validator plugin for prototypejs to put error-messages in certain div.class

  • 0

Is it possible in Validator plugin for prototypejs to put error-messages in certain div.class ?

I’ve tried

new Validation('.form-class', { containerClassName : '.other_div' })

but without any effect. Any ideas? Thx.

  • 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-26T16:21:46+00:00Added an answer on May 26, 2026 at 4:21 pm

    It doesn’t look like the supplied validation allows for user-defined class names but it does use some predefined class names (see the “CSS Hooks” section).

    A quick look at the source shows this:

    getAdvice : function(name, elm) {
        return $('advice-' + name + '-' + Validation.getElmID(elm)) || $('advice-' + Validation.getElmID(elm));
    }
    

    So you can create some DIV elements in advance with an ID which the script will find and use. So if the password field is called password you can prepare an element like this:

    <div id="advice-password" class="other_div" style="display: hidden;"></div>
    

    If that’s still not enough there is another possibility. Copy the /js/prototype/validation.js file to your theme’s js folder (so the original remains intact) then in one of your theme’s layout XML files do something like this:

    <default>
        <action method="removeItem"><type>js</type><name>prototype/validation.js</name></action>
        <action method="addItem"><type>skin_js</type><name>js/validation.js</name></action>
    </default>
    

    You are now free to modify the script however you want.

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

Sidebar

Related Questions

I use the jQuery Form plugin only for validation. Is it possible to stop
With the JQuery Validation Plugin is it possible to print 'Ok' when the field
Please help me with jQuery Validate plugin. It is possible to display the error
I use JQ - validation plugin to validate my form. But i dont know
I'm wondering if it's possible to have the jQuery Validator plugin validate elements that
Is this possible? I'm trying to use jorn's jQuery Validation plugin, and I would
I have a form with several fields and using jQuery validation plugin. My input
I am using jquery form validation plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ If form is invalid my server
I have a form that uses the excellent jQuery validation plugin. This is a
Is it possible to use the ASP.Net Range validator when the format string is

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.