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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:20:02+00:00 2026-05-25T19:20:02+00:00

I use jQuery UI for the various widgets like dialogs, buttons, etc. I want

  • 0

I use jQuery UI for the various widgets like dialogs, buttons, etc. I want to continue using the theme for my other webpage elements like error/alert notices and highlight styles. So I went to the themeroller page to view what they use for the css around, for example, an alert notice:

<div class="ui-widget">
    <div style="padding: 0 .7em;" class="ui-state-error ui-corner-all"> 
        <p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span> 
        <strong>Alert:</strong> Sample ui-state-error style.</p>
    </div>
</div>

There’s a wrapper div, span with background icon, etc. Do I just copy these or does the jQuery UI javascript create some for me? What’s the proper way to apply themes to non-widget html?

  • 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-25T19:20:03+00:00Added an answer on May 25, 2026 at 7:20 pm

    Simply apply that to your own HTML. No Javascript needed (except for hover state).

    When you’re using jQueryUI’s widget, the Javascript creates all of that HTML with those classes.

    If you need the hover state, you’ll have to toggle the ui-state-hover class. For that you’ll need Javascript:

    $('.ui-state-error').hover(function(){
        $(this).toggleClass('ui-state-hover');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use jQuery to get values of presaved elements from some websites, using paths
I use jQuery to do AJAX calls. But specialchars like ÆØÅ (danish letter) comes
I want to learn jQuery. I tried various books, but they only tell you
Brand new to CMS: With Joomla or other CMS, If I want to use
I've been using various javascript frameworks including mootools, jquery, prototype and scriptaculous and have
I'm using a jQuery UI Theme, which is predominantly white text on a black
I currently use the rangeinput plugin from jQuery Tools in various places. But I
I have an app built using jQuery (and using various jQuery-UI tools). For some
I use jquery POST calls to fetch data to display in various sections of
I'm trying to use the jQuery token input plugin with Rails and Mongoid. Using

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.