Forums

Full Version: Background Highlight
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Script for Background Highlight Style.
·        This is to be written on component Script.
·        This script changes the color on click of the respective component.

var division = sdk.getDivIdFromComponetId( 'label2' );
sdk.applyStyles( "#" + division + " span", {"color": "#fff", "background": "#6979af"} );