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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:16:16+00:00 2026-05-17T16:16:16+00:00

I am using the jQuery inline form validation to validate my form. my form

  • 0

I am using the jQuery inline form validation to validate my form. my form structure is such that it is split into two columns. the second column just have the text area. while the first column have the rest of the field.

here is the code that i am using for form.

<h1 class="com-response">Leave a reply for this Article</h1>
    <div class="com-respond">
        <div class="w340">
            <span class="com-label">Name</span>
                <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" id="formID">
                <input type="text" id="author" name="author" class="validate[required,custom[onlyLetter]]"/>
                <span class="com-label">email</span>
                <input type="text" id="email" name="email" class="validate[required,custom[email]]"/>
                <span class="com-label">Phone</span>
                <input type="text" id="phone" name="phone" class="validate[required,custom[telephone]]"/>
                <span class="com-label">Location</span>
                <input type="text" id="location" name="location" class="validate[required,custom[onlyLetter]]"/>
            </div>
        <div class="w340">
                <span class="com-label">Comment</span>
                <textarea rows="10" id="comment" name="comment" class="validate[required,length[6,300]]"></textarea>
                <input type="submit" value="Add Comment *" id="submit" name="submit"/>
                </form>
                <span class="title_sub">* your email and phone will be private and confidential by clicking on submit button you agree to our <a href="#">TOS</a></span>
        </div>
</div>

the first column is being validated without any problem , but i am facing the problem with the second column. i.e text area.

the first and second column is wrapped with a div named w340. and in between the form element w340 is closed and opened again. the closing div is creating the problem. if i remove it, it validates the textarea too. but with the div closed it refuses to validate the field.

any type of help is appreciated.

thank you

EDIT : Here is the jquery i am using
for this.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$("#formID").validationEngine({
})  
});
</script>

here is the link to the plugin i am using

http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/

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

    Your document isn’t well-formed: your form starts inside one div and ends in another. Move the form opening and closing tags outside of the two divs, like so:

    <h1 class="com-response">Leave a reply for this Article</h1>
        <div class="com-respond">
            <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" id="formID">
                <div class="w340">
                    <span class="com-label">Name</span>
                    <input type="text" id="author" name="author" class="validate[required,custom[onlyLetter]]"/>
                    <span class="com-label">email</span>
                    <input type="text" id="email" name="email" class="validate[required,custom[email]]"/>
                    <span class="com-label">Phone</span>
                    <input type="text" id="phone" name="phone" class="validate[required,custom[telephone]]"/>
                    <span class="com-label">Location</span>
                    <input type="text" id="location" name="location" class="validate[required,custom[onlyLetter]]"/>
                </div>
                <div class="w340">
                    <span class="com-label">Comment</span>
                    <textarea rows="10" id="comment" name="comment" class="validate[required,length[6,300]]"></textarea>
                    <input type="submit" value="Add Comment *" id="submit" name="submit"/>
                    <span class="title_sub">* your email and phone will be private and confidential by clicking on submit button you agree to our <a href="#">TOS</a></span>
                </div>
           </form>
        </div>
    

    While the browser may be able to make sense of your form, it’s actually illegal to do things the way you’ve done them. It won’t show, though, until you try to parse the HTML into a DOM tree — which is exactly what jQuery does. Your form node can’t live partially in one div node and partially in another.

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

Sidebar

Related Questions

I'm currently using jQuery.validate as a plugin for validation... my problem comes into play
I have setup a simple example to show a form inside a jquery UI
ok i have this jquery $('.make_request').ajaxForm(function() { // $('.band_notice').show(); $(this).parents('.accordionContent').find('.band_notice').show(); }); I am using
I am trying to parse XML feeds from YouTube using jQuery (by doing $(xml).find(...)
Here's how you get one css attribute using jQuery: $('someObject').css('attribute') How do you get
I am trying to write my own edit-in-place using jQuery. My code is something
What is the best way to change the css of an element using jquery?
I am trying to pass the elements event into a JavaScript function click using
I am trying to get my searchbox to look like that of facebook, where

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.