If so, simply remove the ui-selected class from that item.
If not, then it becomes a more costly operation. You will have to remove ui-selected from the entire list:
But you shouldn't have to do any of this unless you have code that has manually selected the item, or unless you are doing your own "fast click" implementation bypassing and blocking the normal click processing. jQuery Mobile should just take care of this.
Thanks for the reply. I have added a screenshot to show what I mean.
Both the greyed images in the list have previously been disabled. When the reset button is pressed, although the disabled buttons are active again the colour of them remains grey instead of returning to the original black colour.
Thanks for the reply. Each list item can only be selected once as it has a different value as it is attached to a Players number.
For example the user may pick number one from a list of radio buttons and then pick a Player from the list view. This Players name is then disable so that he cannot be picked for two positions.
Once a Players name is selected it goes on to a Confirmation page. From here if the user confirms it directs back to the previous page where the user can make another selection. Also on the page with the list is a reset button (this is where I have the problem).
Resetting the button re-enables all the buttons but leaves any that have been previously selected the grey colour that is shown in the image (in this case no.2 and no.5).
I believe I answered your question in your last post. You really need to stop posting multiple threads about the same issue. Please go back and look at your last thread - you should find the answer there.
You'll need to have some way of selecting the list item using a jQuery selector. You can assign a unique class (recommended) or ID (not recommended) or data- attribute to each list item and use that to locate the item so that you can call .removeClass("ui-btn-active"), or you can save a reference to the link when you handle the click and use this later.
Sorry for steering you the wrong way with ui-selected, which isn't a jQuery Mobile class.