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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:48:55+00:00 2026-05-29T07:48:55+00:00

I have css classes that will automatic get names from a jquery script: so

  • 0

I have css classes that will automatic get names from a jquery script:
so it will be like #imgHere01, #imgHere22, #imgHereSomething, #imgHereAnother, etc.
Can I force CSS to control all of them?
Like

#imgHere_ALL {width:333px;}

or #imgHere_xxx so it will affect everyclass will be generated after imgHere.

I dont know if it is possible with CSS.
Maybe jQuery?

  • 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-29T07:48:56+00:00Added an answer on May 29, 2026 at 7:48 am

    Use CSS regular expression selector:

    div[id^='imgHere']{
       /** styles */
    }
    
    • DEMO

    This will select all divs that have an ID beginning with “imgHere”. But as suggested, a better practice is to give all the elements a common class name.

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

Sidebar

Related Questions

I have an icon set that uses CSS classes to display them accordingly. Like,
Is it possible to use 2 CSS classes that have the same name for
I have a number of CSS attributes and Classes which get applied based on
Is there a tool that will find for me all the css classes that
Say I have a div that uses two css classes that both use text-align,
In my project I have put all my css classes in the style sheets.
I have css that works on all tr tags for the table. so in
I have css hover over images for my tabs and I'm trying to get
It is advisable to use tables in HTML pages (now that we have CSS)?
I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background:

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.