It does. However, it permanently changes the label text to red. The CSS is working, I don't believe the JS is.
It does. However, it permanently changes the label text to red. The CSS is working, I don't believe the JS is.
Hi Mike.
Please follow these steps to make list-item text with "#f00" color when user clicked on it:
1 Open your page with list.
2 Activate list item http://prntscr.com/3lel5j/direct.
3 Open bottom "EVENTS" panel.
4 Add "click" JS event handler on your active list item. http://prntscr.com/3leltc/direct
5 JS editor will appear. Populate it with following code:
precode
var listItemText = jQuery(this).find("*");
//Note you have to change "#f00" with color you need.
listItemText.css("color", "#f00");
/code/pre
That's all.
Regards.
Great, thanks!