see this example http://view.jquerymobile.com/1.3.0/docs/widgets/listviews/ Part: Split buttons
In that example, both the left and right part are buttons. How can I get that only the right part is button (the left is just a basic read-only text)?
Thanks!
Solution
Here's a working example made from the official split button example: http://jsfiddle.net/Gajotres/nwg5b/
What you need to do is remove href="#" from a first a tag:
Change this:
to this:
Finally you will need to dig inside jQuery Mobile css. Think about theme you want to use (theme c is used in the example). Open jQuery Mobile css and search for this class: .ui-btn-up-c where c is theme c (for example if theme a is used then search for .ui-btn-up-a).
Copy its content and put important at the end of every line. At the end of this new css block add this line:
and name it as you want (In example case it is: readonly-state-c). It should all look like this:
Create new class from it and put it inside first a tag, like this:
And that is that.
More info
If you want to learn how to do this kind of changes by yourself you should check this article, it will teach you how to do this by yourself.