Hi Milton,
Sorry first time needed to check this.
Please try this solution:
ol
liAdd you select one more item with "default" value and "default" key. http://prntscr.com/3cvot2/direct/li
liComment code:
precode
Appery("Select_Friends").prepend("default");
Appery("Select_Friends").selectmenu("refresh", true);
$(".ui-selectmenu-list li").removeClass("ui-screen-hidden");
$(".ui-selectmenu-list li").removeClass("ui-first-child");
$(".ui-selectmenu-list li:nth-child(1)").addClass("ui-first-child");/code/pre/li
liChange your code in friends_success event handler with:
precode
//Filter values returned from Contact Service ----------------------
Appery("Select_Friends").find("option").each(function(){
var $this = $(this);
//Remove values that contain a # or are blank
var itemText = $this.text().trim();
if (itemText.indexOf("#") > -1 || itemText.length === 0) {
$this.remove();
}
});
//Appery('Select_Friends').val('default').selectmenu('refresh');
Appery("Select_Friends").val("default");
Appery("Select_Friends").selectmenu('refresh', true);
//Add Default to Friends selector---------------------------------------------
/code/pre/li
/ol
Regards.