Page 1 of 1

Change background of selected label on a list and keep it to show it was selected.

Posted: Wed Apr 13, 2016 5:03 pm
by Joni de Campos

I have a list that returns task names in a project.

Each task uses CSS to handle mouse hover and active states.

I need to change the label background color when the label in the list is selected in the same way Appery selects and mark for example a selected page in Appery's Editor UI.

When another label is selected in the list the label returns to previous CSS style and the new selected label now have its background color highlighted.


Change background of selected label on a list and keep it to show it was selected.

Posted: Thu Apr 14, 2016 10:02 am
by Serhii Kulibaba

Hello Joni,

You are able to add/remove CSS classes dynamically on the click event of each label. https://api.jquery.com/addclass/
https://api.jquery.com/removeClass/


Change background of selected label on a list and keep it to show it was selected.

Posted: Thu Apr 14, 2016 11:27 am
by Joni de Campos

Thanks Sergly. I will try and give you a feed back later.