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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:18:48+00:00 2026-06-13T03:18:48+00:00

Am using 2 Jquery Dialog box in my xhtml page. There are 2 links

  • 0

Am using 2 Jquery Dialog box in my xhtml page. There are 2 links and when a user clicks on those links each link will render a different Dialog box. Different Dialog box in the sense look and feel are different. Since both are referring to jquery-ui-rev.css whatever CSS changes are done in that .css file, it is getting applied to both the Dialog box.

Image from Chrome web developer is attached for reference

So, I tried with dialogClass . I applied dialogClass for one of the Dialog box and left the other as it is.

And I came up with below code and deployed it.

$j("#dialog").dialog({
    dialogClass: 'ui-dialog',
      ....

<head>
<style type="text/css">
 .ui-dialog
{
padding: none;
overflow: hidden;
position: absolute;
width: 100px;
left: 100px;
top: 100px;
}
</style>
</head>

But, ui-dialog class I have written here is not overriding the standard ui-dialog class of jquery-ui-rev.css. Then, I also tried with a different name for ui-dialog. i.e., I renamed ui-dialog with my-dialog. Even then my-dialog is not getting applied for Dialog box. It still takes from standard CSS class of ui-dialog.

Then, I also tried with below code

$j("#dialog").addClass('my-dialog').dialog({

This also couldn’t override the standard ui-dialog class.

PS Note : I have renamed jquery-ui-rev.css to jquery-ui-curretpacks.css. jquery-ui-currentpacks.css contains exact contents of jquery-ui-rev.css

@Dipaks I have tried the solution as you have mentioned. Code is as below,

$('.ui-dialog').addClass('new-ui-dialog');
$j("#dialog").dialog({
    dialogClass: 'new-ui-dialog',
....

But, as I have attached in the new image, it can be seen that though ui-dialog is getting replaced by new-ui-dialog, but css properties are still taken from ui-dialog.

I also gave a try without dialogClass like below,
$j(“#dialog”).dialog({
…..

<style type="text/css">
.new-ui-dialog
{
 //my new css
}
</style>

enter image description here

Am attaching 3rd image here. In this SS, new-ui-dialog attributes are overridden still. Image3

  • 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-13T03:18:50+00:00Added an answer on June 13, 2026 at 3:18 am

    .ui-dialog is adding inline css for the element. If you want to override these styles do this –

    $('.ui-dialog').addClass('new-ui-dialog');
    

    CSS –

    .new-ui-dialog { color: red !important; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to open a Jquery UI dialog box after the user clicks on
Is there any way to create blocking dialog box using Javascript/JQuery/Ajax ... I have
I'm trying to open a jquery modal dialog box when the user clicks on
I am using Jquery Dialog box for a cv registration form on my website
I'm using the jquery-ui dialog box . My problem is upon clicking the x
How to prompt browser to display open/save dialog box using jquery?
Using jQuery's dialog I came across the following quirk (tested in FF3): User selects
I'm using jQuery UI's Dialog option to render a pop-up signup form, which contains
I am using jquery ui dialog box to display a form.When i click on
I am using Jquery UI Dialog box with FullCalendar plugin. My problem is UI

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.