Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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/

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

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

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

Return to “Issues”