Title: Adding class to the select
Last modified: August 21, 2016

---

# Adding class to the select

 *  Resolved [Matt Woods](https://wordpress.org/support/users/yuuzhan/)
 * (@yuuzhan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/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" );
               });
       ```
   
 * [https://wordpress.org/plugins/google-language-translator/](https://wordpress.org/plugins/google-language-translator/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-class-to-the-select/#post-4646719)
 * Hi Matt, the Google Translate tool always loads after jQuery, so it’s pretty 
   much ineffective. I’m not sure how it’s adding the class when you re-size. Interesting.
 * In the Premium version I have created a custom function to display the translator
   along with the page load, so you can grab it immediately and then do what you
   want with it.
 * [http://wp-studio.net/product/google-language-translator-premium/](http://wp-studio.net/product/google-language-translator-premium/)
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/adding-class-to-the-select/#post-4646900)
 * Hi Matt, I’m closing this out since there’s probably not much I can do to help
   when trying to use jQuery with the translator, since it loads after all jQuery
   is loaded. 🙁
 * Let me know if I can be of any help with another idea.
 * Thanks, Rob

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding class to the select’ is closed to new replies.

 * ![](https://ps.w.org/google-language-translator/assets/icon-256x256.png?rev=3007649)
 * [Translate WordPress - Google Language Translator](https://wordpress.org/plugins/google-language-translator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-language-translator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-language-translator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-language-translator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-language-translator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-language-translator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/adding-class-to-the-select/#post-4646900)
 * Status: resolved