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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:17:10+00:00 2026-05-28T20:17:10+00:00

My customer base is highly IE8 and 7, so bear with me. I have

  • 0

My customer base is highly IE8 and 7, so bear with me.

I have objects on page that represent a hierarchy–think orders/line-items type structure. An object on the page is

<input type="text" name="Orders[0].LineItems[1]_lineItemTotal" />

I’m seeing an issue where, in IE7 only, this selector will not work:

var total = $('[name="Orders[0].LineItems[1]_lineItemTotal"]').val();

Tracking this down, it appears that if we escape the period, we can make this work:

var total = $('[name="Orders[0]\\.LineItems[1]_lineItemTotal"]').val();

The thing that’s causing me concern is that it doesn’t seem to be the period itself causing the problem, as this works just fine:

var orderId = $('[name="Orders[0].OrderId"]');

Anyone have any insight as to what’s going on, or the best way to approach this? I’m pretty heavily invested in the naming scheme of the HTML elements, and this only came to light when QA testing against IE7–Chrome, IE9, IE8, etc seem to deal with this just fine.

I’m using jQuery 1.7.1.

  • 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-28T20:17:11+00:00Added an answer on May 28, 2026 at 8:17 pm

    To make things even weirder, it looks like a name of Orders[0].1_lineItemTotal works just fine, but as soon as you put any non-special character after that period, it stops working!

    I think the backslashes are the best approach for now.

    The jQuery Documentation provides some information about escaping characters in CSS selectors, but it shouldn’t have to apply here where you’re setting an attribute.

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

Sidebar

Related Questions

I have the following classes with associations: class Customer < ActiveRecord::Base has_many :orders has_many
Well, I have a class Customer (no base class). I need to cast from
I have a class Contact (base class),a class called Customer and a class called
I have the following rails model: class Customer < ActiveRecord::Base attr_accessible :firstname, :lastname, :email,
I have following model: class Customer < ActiveRecord::Base has_one :cart end class Cart <
I have following tables (CustomerType, Customer and Company) in a data base: In asp.net,
I have an abstract base class Contact that has two subclasses: Person and Company
I have a Customers model: class Customer < ActiveRecord::Base has_many :phone_numbers end and a
I have a Job model that belongs_to three users (customer, employee, and qa). The
I have a django site with a large customer base. I would like to

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.