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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:10:12+00:00 2026-06-03T00:10:12+00:00

My main page is controlled by a tab-type widget and I have a stylesheet

  • 0

My main page is controlled by a tab-type widget and I have a stylesheet that is specifically designed for this. However, I just recently realized that I need a datepicker in my application as well. I’ve added the jquery-ui-style.cs stylesheet to my project. The problem is that I only want this stylesheet to affect my datepicker and not my tabs.

Is there a way to apply this stylesheet only to my datepicker either when the page initially loads or whenever the textbox is focused on?

It’s probably not needed but here is my jquery for the datepicker:

$(function () {
    $("#txtViewWeeksData").datepicker({
        changeMonth: true,
        changeYear: true,
        showOtherMonths: true,
        selectOtherMonths: true
    });
});
  • 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-03T00:10:13+00:00Added an answer on June 3, 2026 at 12:10 am

    Sadly there is no “easy” way.

    But i made an example here: http://jsfiddle.net/ggwGs/9/

    On the download page (http://jqueryui.com/download) you can under “Theme” select “Advanced”. Where you can create an custom “CSS Scope”, enter and special theme name, example “.customTheme” and press donnload.

    If you have created a custom theme, you do exactly the same under “Download Theme“.

    Now we need to add the CSS scope class to the Datepicker when active, and remove when not.

    So we do it like this:

    $("#txtViewWeeksData").datepicker({
        changeMonth: true,
        changeYear: true,
        showOtherMonths: true,
        selectOtherMonths: true,
        beforeShow: function(input, inst) {$(inst.dpDiv).addClass('customTheme');},
        onClose: function(dateText, inst) {$(inst.dpDiv).removeClass('customTheme');}
    });
    

    Basicly we tell it that right before showing add the scope, and right after it’s closed remove it again.

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

Sidebar

Related Questions

On my main page I have this jquery code which does an ajax call
On my main page I have a search form that is submitting to the
I have a main page from where I am making a call to load
On a portal's main page, I'm using a jQuery container plug-in, and by this
When Google's main page communicates with Firefox or Chrome it uses a particular type
I have in the main page with two principal parts : in the left
I have an PHP/HTML main page, in which I include different other PHP files
How can i create a main page with codeigniter? That page should contain a
I have this in my controller: function foo() { // my code redirect(site_url('competitor/main'), 'refresh');
I have a page that i want to remain static with two divs that

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.