Update
I just realized that you want to change icon for elements with label
class.
You first need to remove old class that starts with ui-icon-
and then add ui-icon-plus
.
$(".label a").removeClass(function (i, uiClass) {
return (uiClass.match(/\bui-icon-\S+/g) || []).join(' ');
}).addClass("ui-icon-plus");
Using .buttonMarkup()
isn't correct, it's meant to be used with anchors only. Anyway, that function is deprecated and will be removed on 1.5.
The below is the correct way to do changes to listview widget.
$(document).on("pagebeforecreate", function () {
$("#menu").listview({
icon: "plus"
});
});