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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:56:11+00:00 2026-06-08T22:56:11+00:00

High everyone, In my web-based app, I have a div that is usually display:none

  • 0

High everyone,

In my web-based app, I have a div that is usually display:none so that it is hidden and doesn’t take up any space. When something happens, I want the div to appear with the styling for the class ui-state-highlight ui-corner-all and i will put in some dynamic content. So i give this hidden div these classes initially. The problem is when I show the div with some dynamic content, the styling for the classes i just mentioned is not there.

See this fiddle which illustrates the problem: http://jsfiddle.net/qR8gK/

The desired outcome is the div that appears when you click the button has the same styling as the one that is visible initially. Does anyone know how I can do this??

Thanks!

  • 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-08T22:56:13+00:00Added an answer on June 8, 2026 at 10:56 pm

    Call the show() method to make it visible.

    $('#a').button().click(function() {
        $('#dynamic').html('<p>some dynamic content</p>').show();
    });​
    

    working sample : http://jsfiddle.net/qR8gK/16/

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

Sidebar

Related Questions

First high-level: I have a web page that will be showing correspondance between a
Let's say that we are about to build an web application where high availability
I have some high quality recorded sounds that I want to use within a
High Level With StructureMap, Can I define a assembly scan rule that for an
I've looked high and low for simple twitter widget that shows how many followers
I am using a high modal from twitter bootsrap. Is it possible to have
I'm implementing the ACL component for my CakePHP app (1.3.14). I have everything setup
I am creating a very data intensive, high volume web site. Every aspect of
Hey everyone, running into a bit of an issue, I have created all my
I have an AIR/Flex app I made, I have a few people testing it

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.