Page 1 of 1

hide list item via javascript

Posted: Sat Jul 20, 2013 8:49 am
by steve5588065

I am trying to hide a listitem via javascript on page load using
Appery("ml_shop").hide();

I have also tried
Appery("ml_shop").css('display','none');

In both cases the listitem text is hidden but the listitem still displays as a thin bar with the right arrow icon

What am I missing?

Regards
Steve


hide list item via javascript

Posted: Sat Jul 20, 2013 9:06 am
by Alena Prykhodko

Hello Steve

Use the following code:

codeAppery('mobilelistitem').closest("li").hide();/code

mobilelistitem - the name of list item you hide.


hide list item via javascript

Posted: Sat Jul 20, 2013 10:04 am
by steve5588065

Hello Alena

Thank you so much

Worked a treat

Regards
Steve