Sunday 15 May 2011

Different theme for select icon and menu in jQuery mobile -


I want to set different themes for selection menu icon and dropdown which opens when I click on the icon.

Generally, the icon color is the same as the data-theme attribute I think the icon should be of a different color and the selection menu should be of a different color < Pre> & lt; Select data-iconpos = "notext" data-divider-theme = "one" data-theme = "c" & gt;

The above code will have both icons and menu data-theme = "c" .

link:

Do you want something like that? Demo

You have to update the UI sections to get this. In this demo, I select the icon on a and set the option to b .

JQUERY
  $ ('.ui-select a'). RemoveClass ('ui-btn ui-btn-up-c ui-btn- icon-correct ui-li ui-btn-' Up-b '). AddClass (' ui-btn-up-a ui-btn ui-btn- icon-correct ui-li ui-btn-up-b '). Attr (' Data-Theme ',' B ' );});    

No comments:

Post a Comment