Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

ListItem Issue

I have been using the following code for about a year. If I use the iOS7 theme the data icon is appearing when it should not. I believe the element.next().remove() should take care of that but it no longer works.

Any ideas?

if (value == 'true'){
var listItem = element.parent();
listItem.attr('data-role', 'list-divider');
listItem.attr('role', 'heading');

listItem.removeClass();
listItem.addClass('mobilelistitem1 ui-li ui-li-divider ui-bar-b');

element.next().remove();
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

ListItem Issue

Hi Roger,

Add the following CSS:pre.hide-icon:after{
display:none;
}/preThen add a class "hide-icon" to a list item.

Return to “Issues”