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

  • Home
  • SEARCH
  • 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 8807701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:25:56+00:00 2026-06-14T02:25:56+00:00

According to the jQuery Mobile Docs any form element inside a container will adopt

  • 0

According to the jQuery Mobile Docs any form element inside a container will adopt the data-theme of that container

Query Mobile has a rich theming system that gives you full control of
how pages and forms are styled. By default all form elements inside a
container will automatically adopt the same theme color swatch as
their parent. This allows form elements to blend into their layouts
with minimal work. The data-theme attribute can be applied to any
individual form element to apply any of the lettered theme color
swatches to create contrast and emphasis in your designs.

However it seems that with the most recent release of jQuery Mobile (1.2) this is no longer true, I’ve noticed that form elements now inherit from the data-theme of the page instead of their more immediate parent.

For example given the following markup

<div data-role="page">
<div data-role="header"><h3>Header</h3></div>
<div data-role="content" data-theme="a">
      <ul data-role="listview" data-inset="true" data-theme="c">
        <li>
            <input type="button" value="test" />
        </li>
        <li>
            <select >
                <option value="1">Option 1</option>
                <option value="2">Option 2</option>
            </select>
        </li>
         <li>
           <div data-role="fieldcontain"  data-theme="c" >
         <fieldset data-role="controlgroup"  data-theme="c"  data-type="horizontal" >
            <legend>Group Size</legend>

            <input type="radio" name="testRdoGrp" id="testRdoGrp1" checked="checked" value="1" />
            <label for="testRdoGrp1">1</label>       
            <input type="radio" name="testRdoGrp" id="testRdoGrp2" value="2" />
            <label for="testRdoGrp2">2</label>

         </fieldset>
        </div>
        </li>
    </ul>
</div>
<div data-role="footer"><h3>Footer</h3></div>
</div>

Jsbins:

With JQM 1.1

With JQM 1.2

Using JQM 1.1 the input, select and radio group will use the c theme swatch (inherited from the listview), but when using JQM 1.2 the input, select and radio group will instead use the a swatch.

This seems to be the case even with container’s that have the `data-role=”fieldcontain” (such as the radio group in the example I provided).

Setting the data-theme directly on the element still works but besides that I think the previous behavior makes for cleaner markup in my case I have quite a bit of markup and I would rather not have to go through each element and individually add the data-theme.

Does any one know of some way to revert to the 1.1 behavior?

  • 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-14T02:25:58+00:00Added an answer on June 14, 2026 at 2:25 am

    I still haven’t found this change in behavior documented anywhere, but I’ve found a partial workaround for this issue. Adding the swatch using the ui-body- (plus the letter for the swatch) class causes the elements to inherit the data-theme from the parent.

    For example

    <ul data-role="listview" class="ui-body-c" data-inset="true" data-theme="c">
        <li>
            <input type="button" value="test" />
        </li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So according to the jQuery Ajax docs , it serializes data in the form
This is a newbie question that is driving me crazy. According to jQuery mobile
According to convention, I'm importing an initializing JavaScript file into my jQuery Mobile pages
According to the docs, jQuery.extend() is a solution to execute both a deep and
I made a simple application in jQuery mobile annd HTML 5 according to the
According to this post jquery mobile ajax sends both GET and POST requests ,
I have a jQuery Mobile accordion menu set up like: <div class=subCat data-role=collapsible> <h3
I have a jQuery Mobile accordion menu set up like: <div class=subCat data-role=collapsible> <h3>Subcategory
I've been meaning to use jQuery Mobile for a client project that is to
I'm developing an application that will be consumed by various websites and mobile devices.

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.