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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:21:37+00:00 2026-06-09T23:21:37+00:00

I am working with twitter bootstrap and the jquery validate plugin I have a

  • 0

I am working with twitter bootstrap and the jquery validate plugin

I have a form row that looks like:

<div class="form_row" >
<div class="control-group">
<label class="control-label" for="input01">home phone</label>
  <div class="controls">
    <input type="number" class="span4" class="input-xlarge" id="home_phone" name="home_phone" value="<?php echo $this->property->home_phone ?>" rel="popover" data-content="Re-enter your home phone." data-original-title="homephone" >
    <input type="number" class="span4" class="input-xlarge" id="cell_phone" name="cell_phone" value="<?php echo $this->property->cell_phone ?>"  rel="popover" data-content="Re-enter your cell_phone." data-original-title="cell_phone" >
  </div>

after validation, when I look at it in firebug, the inputs with errors are followed by span.error.I would like to select class control-group where none of its children are span.error. I would appreciate any help.

Thanks , Bill

  • 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-09T23:21:39+00:00Added an answer on June 9, 2026 at 11:21 pm

    How about:

    $('.control-group').not($('.control-group span.error').closest('.control-group')).
    

    http://jsfiddle.net/zerkms/Dhe4j/

    In the jsfiddle example we select all the .control-group which don’t have nested span.error and make them red.

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

Sidebar

Related Questions

I am working with twitter bootstrap and the jquery validate plugin I have a
I am working with twitter bootstrap and the jquery validate plugin I have a
With Twitter Bootstrap 2, how do get links working within collapse-nav: <div class=navbar navbar-fixed-top>
I'm using the Twitter bootstrap-typeahead plugin with an HTML form: http://twitter.github.com/bootstrap/javascript.html#typeahead which is working
I have a working twitter bootstrap install and simple form generates the following: <form
I'm trying to get twitter bootstrap's .popover working within a .submit jquery event but
I seem to have the Twitter Bootstrap carousel working properly as far as moving
I'm working with a project that uses twitter-bootstrap-rails. This project was built on a
Is there a way to check if twitter-bootstrap 's jquery plugins are working properly?
i'm currently working with Twitter Bootstrap and have a problem concerning the size of

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.