Title: show/hide fields with jQuery
Last modified: August 31, 2016

---

# show/hide fields with jQuery

 *  [gediweb](https://wordpress.org/support/users/gediweb/)
 * (@gediweb)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/showhide-fields-with-jquery/)
 * Hi, I found this post: [https://wordpress.org/support/topic/plugin-contact-form-7-this-is-how-to-showhide-fields-with-jquery?replies=8](https://wordpress.org/support/topic/plugin-contact-form-7-this-is-how-to-showhide-fields-with-jquery?replies=8)
 * But the topic was closed. I did everything as listed. But the field still shows.
   I noticed there is an error in the code inspector: “Error: <![EX[[“Tried to get
   element with id of \”%s\” but it is not present on the page.”,”#hide1″]]]>”
 * Not sure what this means.
    **My website form:** [http://tinyurl.com/o3ofgy6](http://tinyurl.com/o3ofgy6)**
   field to hide:** wedding/event (wrapped in div #hide1) **field that controls:**
   subject – (dropdown #lookingfor) **The 2 js files added:** [http://galuppis.com/wp-content/themes/galuppis/js/hidefieldsScript.js](http://galuppis.com/wp-content/themes/galuppis/js/hidefieldsScript.js)
   [http://galuppis.com/wp-content/themes/galuppis/js/1.7.1/jquery-1.7.1.min.js](http://galuppis.com/wp-content/themes/galuppis/js/1.7.1/jquery-1.7.1.min.js)
 * What am I doing wrong?
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)
 * **UPDATE:**
    [http://galuppis.com/wp-content/themes/galuppis/js/1.7.1/jquery-1.7.1.min.js](http://galuppis.com/wp-content/themes/galuppis/js/1.7.1/jquery-1.7.1.min.js)
   was breaking a lot of our plugins. So I had to remove it from the head. Now I
   get an error: “Uncaught TypeError: $ is not a function” referring to line 3 of
   hidefieldsScript.js – `$(document).ready(function()`
 * How can I go around this and make the show/hide work?

The topic ‘show/hide fields with 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [gediweb](https://wordpress.org/support/users/gediweb/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/showhide-fields-with-jquery/)
 * Status: not resolved