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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:13:53+00:00 2026-06-14T21:13:53+00:00

Here is my form and jquery validation code. The problem is : it validates

  • 0

Here is my form and jquery validation code. The problem is : it validates the first two fields i.e title and desc but it doesnt validate from breeds field.

<div class='span10 well' style='display:block;'>
  <h4>Listing Details : <span class='btn btn-info btn-    small' style='display:inline;'>Public</span><a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">The information entered here will only shown to all customers who view your profile!</span><span class="bottom"></span></span></a></h4><br>
  <div class='test span9 well'>
    <form name='listingForm' id='listingForm' action='processListing.php' method='POST' onsubmit='validateForm()'>
            <label for "title"> Title: </label>
                    <input class='span8' type='text' name='title' id='title' placeholder='Catchy one-liner title...'>
                    <!-- help message -->
                    <a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">A title is your first impression key! Make it catchy but informative to attract more customers.</span><span class="bottom"></span></span></a>
            <br><br><label for "desc"> Description: </label>
                    <textarea id="desc" name="desc" class='span8' rows=5 placeholder='Detailed description about your listing...'></textarea>
                    <a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">A detailed description about your listing helps prospective customers know more about you. Talk about your pet, your family, how much you love your pet or an overview about how you can take the best possible care of the customer's four-feeted friend!</span><span class="bottom"></span></span></a>
  </div>
  <div class='myspan well'>
     <label for "breeds"> Breeds: <a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">Key in all the breeds that you are willing to host. The more the merrier, so select as many as you want!</span><span class="bottom"></span></span></a></label>
             <input  type='text' name='breeds' id='breeds' value='' placeholder='Breeds you are willing to take in' onfocus='getDynamicData("Breed",this)'>

     <br><br><label for "boardingtype"> Accomodation Type: 
     <a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">The type of accomodation that you can provide for the customer's best friend!</span><span class="bottom"></span></span></a>
     </label>

             <input type='radio' name='boardingtype' id='Apartment'> Apartment
             <input type='radio' name='boardingtype' id='House'> House
             <input type='radio' name='boardingtype' id='Boarding'> Boarding
     <br><br>
     <label for "amenities"> Amenities: 
     <a href="#" class="tt"><img src='../../img/help.png' class='helpicon' /><span class="tooltip"><span class="top"></span><span class="middle">Amenities available for a customer's pet. Choose all that apply. If you have more, be sure to mention it in the description of your listing.</span><span class="bottom"></span></span></a>
     </label>
             <input type='checkbox' id='amenity1' name="amenity1" value='Y'> <span style='padding-left: 10px'>Proximity to Vet</span>
             <br><input type='checkbox' id='amenity2' name="amenity2" value='Y'> <span style='padding-left: 10px'>Play Area</span>
             <br><input type='checkbox' id='amenity3' name="amenity3" value='Y'> <span style='padding-left: 10px'>24x7 Caretaker</span>
             <br><input type='checkbox' id='amenity4' name="amenity4" value='Y'> <span style='padding-left: 10px'>Toys</span>
  </div>

here is my jquery validation:

$(document).ready(function(){
     $("#listingForm").validate({
            rules: {
                title: "required",
                desc: "required",
                breeds: "required",
                price: {
                    required: true,
                    },

            },
            messages: {
                title: "blah blah",
                desc: "blah blah",
                breeds: "blah blah",

                price:"blah blah"
            }
        });

    });
  • 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-14T21:13:54+00:00Added an answer on June 14, 2026 at 9:13 pm

    The problem is that the remaining fields are not part of the form. Forms and divs have to be nested properly. You have:

    <div class='test span9 well'>
    

    before the beginning of the form. The </div> that matches this also implicitly ends the form. If you want to split the form into multiple divisions, you need to move the <div> tags inside the <form>.

    You’re also missing the closing </form> and </div> for the span9 division.

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

Sidebar

Related Questions

I coded, global mini form validation for jquery. This here; This code, All form
I'm using the jQuery validation plugin to validate a form. The form fields are
Here is a tutorial that indicates how to combine jQuery Form Validation with reCAPTCHA.
I'm using this jQuery Validation script to submit my form(s), but I need some
Further to my problem here - jQuery on submit validation, with modal dialog at
I have a form that is using jQuery Validate plugin for client side validation,
I'm using the JQuery validation plug to validate my entire form. I also have
I am using the ubiquitous jquery validate plugin for form validation. It supports using
I am using the jQuery inline form validation to validate my form. my form
I am using the jQuery form validation plugin. The problem I have is that

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.