function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkat bojjavenkat bojja 

How to remove unwanted css classes from loaded scripts as a static resource in lightning components

I have Used jQuery DataTable Plugin In Salesforce Lightning Component . Now i want to remove unwanted css clases from the loaded scripts.
So any one help me on this. Thanks in advance...

User-added image

I Want to remove the highlighted css classes from the loaded scripts.
================================================================

Code Snippet:

.This  .dataTables_length {
    color: white!important;
}


User-added image

But in select option also i am getting white color, due to that i am unable to see the size of the paze like 10, 25, 50, 100. So i want to give another background color for select option only.This is all because of my page background color is black but it is mandatory.

Thanks 
Venkat


 
Best Answer chosen by venkat bojja
sfdcMonkey.comsfdcMonkey.com
Hi with jQuery datatable to change the background color OR color of select try this one 
 
.THIS .dataTables_length select{
    background-color: black;
}

Thanks hope it will helps you  
sfdcMonkey.com

All Answers

GhanshyamChoudhariGhanshyamChoudhari
Hi Venkat,

pls try below code
.THIS select {
background-color:red !important;
}

 
sfdcMonkey.comsfdcMonkey.com
Hi with jQuery datatable to change the background color OR color of select try this one 
 
.THIS .dataTables_length select{
    background-color: black;
}

Thanks hope it will helps you  
sfdcMonkey.com
This was selected as the best answer