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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:56:04+00:00 2026-05-26T06:56:04+00:00

I have some elements created with jQuery that are added in a iframe. I

  • 0

I have some elements created with jQuery that are added in a iframe. I set a class to those elements from jQuery.I have a CSS rule that matches that class.

I see in Chrome clearlly that the CSS rule was not applied and the inspector confirms me that.

I see class=”messagesWrap” in the DOM, but it’s not interpreted by the browser, because .removeClass(“messagesWrap”) is also unable to remove the class.

I use the DOM editor from Chrome (“Elements” tab from Developer Tools), I double click the class attribute of the element in order to edit it and just press enter afterward to apply the “changes” without actually changing anything. This time, the CSS selector is applied correctly.

  • 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-26T06:56:04+00:00Added an answer on May 26, 2026 at 6:56 am

    It’s possible adding a CSS class on an element that’s not part of a document (yet) just doesn’t work.

    As a workaround, try generating it with class=”messagesWrap”, or adding the class after it’s been added to an actual document.

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

Sidebar

Related Questions

I have created some functional categories that I use to show/hide markup elements. However,
I have some elements with events bound. Before I remove those elements, do I
I have some elements and I'm using some jQuery plugins. I want to see
On extracting some html from a web page, I have some elements containing text
I have a 100 classes that have some similar elements and some unique. I've
I have been adding new elements via jQuery in some of my projects, and
I have a form with multiple fields that I'm validating (some with methods added
Is there any way I can modify some style to all elements that matches
i have created a form with zend framework and this form have some elements
I have created a jQuery plugin that works great with the exception of being

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.