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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:09:57+00:00 2026-06-11T02:09:57+00:00

I am using Position Absolute’s Validation Engine for validating values on form. The issue

  • 0

I am using Position Absolute’s Validation Engine for validating values on form.

The issue is that on validation, the error prompts do not appear attached to the textboxes (input type:text) as they are expected. I know that the issue is with the margin-top that I have given to the textboxes but I cannot change that. Sample code snippet is provided here…

html:

<form id="frmTest" style="position:relative">
    <div id="divContents" style="position:relative; overflow-y:auto; overflow-x:none;">
        <div class="row1">
            <span>FName:</span>
            <input id="txtFName" data-prompt-position="bottomRight" class="validate[required] text-input" tabindex="1" />
        </div>
        <div class="row2">
            <span>LName:</span>
            <input id="txtLName" class="validate[required] text-input" tabindex="2" />
        </div>
        <div class="row3">
            <span>Age:</span>
            <input id="txtAge" class="validate[required, custom[integer],min[1]] text-input" tabindex="3" />
        </div>
    </div>

        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
    <input type="submit" id="btnSubmit" value="Submit" />
</form>

JS:

$('#frmTest').validationEngine();

$('#txtFName').focus();

$('#btnSubmit').click(function(){
    return $('#frmTest').validationEngine();
});

jsFiddle.

The divs that I have created are just sample but in live environment, they are collapsible divs. Also, I don’t want to hard-code data-prompt-position value for each input field as there are more than 100 fields in each form. So am looking for a generic way of handling this issue (which I know is possible through CSS but don’t know how?)

The demo setup having the issue is on http://www.x-lant.com

Use guest / pwd to login to the application.

  • 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-11T02:09:59+00:00Added an answer on June 11, 2026 at 2:09 am

    I just used this code in js

    $('#frmTest').validationEngine({promptPosition : "bottomRight"});
    

    and this in css

    .formError{margin-top: 15px!important;}
    

    and it looks good.
    The updated fiddle is here.

    I hope this helps you.

    HTML

    <!DOCTYPE html>
        <html>
        <head>
            <title>Demo</title>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        </head>
        <body>
    
        <form id="frmTest" style="position:relative">
            <div id="divContents" style="position:relative; overflow-y:auto; overflow-x:none;">
                <div class="row1">
                    <span>FName:</span>
                    <input id="txtFName" data-prompt-position="bottomRight" class="validate[required] text-input" tabindex="1" />
                </div>
                <div class="row2">
                    <span>LName:</span>
                    <input id="txtLName" class="validate[required] text-input" tabindex="2" />
                </div>
                <div class="row3">
                    <span>Age:</span>
                    <input id="txtAge" class="validate[required, custom[integer],min[1]] text-input" tabindex="3" />
                </div>
            </div>
            <input type="submit" id="btnSubmit" value="Submit" />
        </form>
        </body>
        </html>​
    

    CSS

    body
    {
        margin: 0 auto;
        font-family: Arial;
        font-size: 12px;
        line-height: 20px;
    }
    
    div.row1, div.row2, div.row3
    {
        min-height: 100px;
    }
    
    span
    {
        clear: both;
        float: left;
        margin-left: 10px;
        padding: 20px 5px 0 20px;
        width: 50px;
    }
    
    #txtFName, #txtLName, #txtAge
    {
        margin-top: 20px;
    }
    
    input[type=text]
    {
        width: 150px;
    }
    .formError{
        margin-top: 15px!important;
    }
    

    ​JS

    $('#frmTest').validationEngine({promptPosition : "bottomRight", autoPositionUpdate: true});
    
    $('#txtFName').focus();
    
    $('#btnSubmit').click(function(){
        return $('#frmTest').validationEngine();
    });
    ​
    

    Also, more documentation here.

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

Sidebar

Related Questions

I am using position absolute's validation engine for my form. I would like to
I've got a div (#slider) that I'm using position: absolute; to allow it to
I want to create a grid of tiles using position:absolute that consists of 5
i'm having the following markup using 2 divs. the #child div has set position:absolute;
Im using position absolute to give the top left corner of a DIV a
I am using Position Absolute's jQuery validationEngine but I need to remove it after
Usually I would do this by either setting the margin to auto, using position:absolute,
I am currently using position:absolute; for the second level menu, because when I use
I have an image(a map) with some points of interest placed using position: absolute
i am using the jQueryUI Position Utilities, but i don't know why it not

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.