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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:34:03+00:00 2026-05-11T09:34:03+00:00

If my html looked like this: <td class=controlCell> <input class=inputText id=SearchBag.CompanyName name=SearchBag.CompanyName type=text value=

  • 0

If my html looked like this:

<td class='controlCell'>     <input class='inputText' id='SearchBag.CompanyName' name='SearchBag.CompanyName' type='text' value='' /> </td> 

How could I select #SearchBag.CompanyName with JQuery? I can’t get it to work and I fear it’s the dot that’s breaking it all. The annoying thing is that renaming all my id’s would be a lot of work, not to mention the loss in readability.

Note:
Please let’s not start talking about how tables are not made for lay-outing. I’m very aware of the value and shortcomings of CSS and try hard to use it as much as possible.

  • 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. 2026-05-11T09:34:03+00:00Added an answer on May 11, 2026 at 9:34 am

    @Tomalak in comments:

    since ID selectors must be preceded by a hash #, there should be no ambiguity here

    “#id.class” is a valid selector that requires both an id and a separate class to match; it’s valid and not always totally redundant.

    The correct way to select a literal ‘.’ in CSS is to escape it: “#id\.moreid”. This used to cause trouble in some older browsers (in particular IE5.x), but all modern desktop browsers support it.

    The same method does seem to work in jQuery 1.3.2, though I haven’t tested it thoroughly; quickExpr doesn’t pick it up, but the more involved selector parser seems to get it right:

    $('#SearchBag\\.CompanyName'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some HTML that looks like this: <ul class=toggleList> <li><input type=checkbox name=toggleCbx1 id=toggleCbx1
html <input id=1 name=myText type=text value=20/> <input id=2 name=myText type=text value=30/> <input id=3 name=myText
HTML code: <div class=clearfix style=color: #555 style=display:block; > <input type=text id=id_site placeholder=nom-du-site style=width: 245px;
I would like to replace the following html block: <table class=t12PageBody cellpadding=0 cellspacing=0 width=100%
I have the following markup for my input fields: <div class=required> <label for=Name>Name <em>*</em></label>
I've my HTML codes as <li><button id=1 class=vote btn type=button /></li> <li><button id=2 class=voteUp
Basically I have 2 classes, Manifest and BrowserAction, set out like this: public class
I've looked for tutorials on using HTML Agility Pack as it seems to do
I've looked at free javascript html editors, and I haven't found any that I
I've looked at http://code.google.com/appengine/docs/java/urlfetch/overview.html but the code does not show a pooling example, i

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.