Title: select click jQuery
Last modified: February 23, 2021

---

# select click jQuery

 *  [larryse69](https://wordpress.org/support/users/larryse69/)
 * (@larryse69)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/select-click-jquery/)
 * I have a form with a select in it. when I select an item I want to run jQuery
   which will get the val of the selected item. I currently have
 *     ```
       [select cf7-dropdown id:foodmenu]
       <script>
       jQuery(document).ready(function() {
           document.getElementById("foodmenu").click(function() {
               //Get the value of the selected drop down
               var dropDownText = document.getElementById("foodmenu").val();
               //document.getElementById("menuid").val(dropDownText);
       alert(dropDownText)l;
           });
       });
       </script>
       ```
   
 * my select is populated by a db call it currently has two values. when I run it
   my pointer is the little circle goiing round, and nothing happens when i select
   an item.
 * thanks

The topic ‘select click jQuery’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [select](https://wordpress.org/support/topic-tag/select/)

 * 0 replies
 * 1 participant
 * Last reply from: [larryse69](https://wordpress.org/support/users/larryse69/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/select-click-jquery/)
 * Status: not resolved