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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:10:40+00:00 2026-05-23T17:10:40+00:00

I need to do is when 2 textboxes are having text.. to make collapsible

  • 0

I need to do is when 2 textboxes are having text.. to make collapsible header color green..
I know how to do the first part.. but how to change collapsible header color i don’t know…

http://jquerymobile.com/test/docs/content/content-themes.html

here is written that you can customize it with custom css… i tried but this didn’t help..
here is the code of creation

        var collDiv = '<div class="added"  data-role="collapsible" data-collapsed="true"><h3 style="background: rgba(204,244,204,0.9);" id="results-header">'
                + hoursFrom + ":" + minsFrom
                + " - "
                + hoursTo + ":" + minsTo + '</h3>' + textProjectName + textProjectData + '</div>';
            $('.spanTimetable').append(collDiv);

enter image description here

  • 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-23T17:10:40+00:00Added an answer on May 23, 2026 at 5:10 pm

    Docs:

    • http://jquerymobile.com/demos/1.0b1/docs/content/content-themes.html

    Theming collapsible blocks

    To set the color of the collapsible header, add the data-theme attribute to the collapsible container. The icon and body are not currently themable through data attributes, but can be styled directly with custom css.

    <div data-role="collapsible" data-collapsed="true" data-theme="a">
    

    Try something like this:

    var collDiv = '<div class="added"  data-role="collapsible" data-collapsed="true" data-theme="f"><h3 style="background: rgba(204,244,204,0.9);" id="results-header">'
                    + hoursFrom + ":" + minsFrom
                    + " - "
                    + hoursTo + ":" + minsTo + '</h3>' + textProjectName + textProjectData + '</div>';
                $('.spanTimetable').append(collDiv);
    

    UPDATE:

    A new ThemeRoller tool will launched with the jQuery Mobile 1.0 release in 2011. In the meantime, it’s simple to manually edit the base swatches in the default theme and/or add additional swatches by editing the theme css file: copy a block of swatch styles, rename the classes with the new swatch letter name, and tweak colors.

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

Sidebar

Related Questions

I need to change a lot of textboxes to NumericUpDowns and other similar changes
I have a series of controls, but mostly textboxes and labels that need to
I’m having an issue where I need to be able to change a series
I need to fill textboxes depending on the item selected in a combobox. I
I need to dynamically build a list of textboxes using javascript and jquery. The
I need to create a form with, half linear view (textboxes and dropdownlists in
I have added some dynamic textboxes upon a button click. I need the values
My project has multiple themes with different colors. I need to skin certain textboxes
I'm creating some text boxes on my form programmatically which I need to reference
I'm working on an ASP.NET/C# app. I have 2 text boxes and I need

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.