Adding class to the select
-
Hi
I’m trying to add a class to the .goog-te-combo select field but it’s loading the select field after the jQuery code I’m using to add the class is performed even when I’ve placed the jQuery code after the wp_footer();.
I tried the adding the class if you resize the browser window as a test to see if the add class even works and it did add the class when I resized the window.
This is the code i’m currently using to add the class to the select field
jQuery(document).load(function() { jQuery( ".goog-te-combo" ).addClass( "dropdown" ); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Adding class to the select’ is closed to new replies.